You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: en/chromebook_setup/instructions.md
+14-3Lines changed: 14 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,12 @@ bigger.
66
66
1. Go to [Glitch.com](https://glitch.com/)
67
67
2. Sign up for an account (https://glitch.com/signin) or use your GitHub account if you have one (see GitHub instructions below).
68
68
3. Click _New Project_ and choose _hello-webpage_
69
-
4. Click Terminal button (on the left side of the window)
69
+
4. Click Terminal button (at the bottom left side of the window) to open terminal window with prompt like this:
70
+
71
+
{% filename %}Terminal{% endfilename %}
72
+
```
73
+
app@name-of-your-glitch-project:~
74
+
```
70
75
71
76
When using Glitch.com as your Cloud IDE, we do not create a virtual environment but we create the following files manually :
72
77
@@ -102,9 +107,13 @@ python3 manage.py migrate
102
107
python3 manage.py runserver $PORT
103
108
```
104
109
105
-
Once these files are created, open a terminal (in the tools menu at the bottom) and execute the command `refresh`.
110
+
Once these files are created, open a terminal (in the tools menu at the bottom) and execute the following commands to create your first Django project :
106
111
107
-
The initial restarting of the Glitch project should fail (complaining that the ```manage.py``` file is missing), but do not worry about it at this stage, the tutorial will fix this as soon as you create your first Django project.
112
+
{% filename %}Terminal{% endfilename %}
113
+
```
114
+
django-admin.py startproject mysite .
115
+
refresh
116
+
```
108
117
109
118
In order to see detailed error messages, you can activate Django debug logs for your Glitch application.
110
119
Simply add the following at the end of the ```mysite/settings.py``` file.
@@ -132,6 +141,8 @@ LOGGING = {
132
141
```
133
142
This will create a ```debug.log``` file detailing Django operations and any error messages that might come up, making it much easier to fix if your website does not work.
134
143
144
+
The initial restarting of the Glitch project should fail (if you click on the top dropdown button `Show` then click on `In a New Window`, you will receive a `DisallowedHost` error message), but do not worry about it at this stage, the tutorial will fix this as soon as you update the Django settings of your project in the `mysite/settings.py` file.
145
+
135
146
### Virtual Environment
136
147
137
148
A virtual environment (also called a virtualenv) is like a private box we can
0 commit comments