Skip to content

Commit 1947957

Browse files
authored
Switching the order of instructions to the
1 parent c83e719 commit 1947957

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

en/chromebook_setup/instructions.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,12 @@ bigger.
6666
1. Go to [Glitch.com](https://glitch.com/)
6767
2. Sign up for an account (https://glitch.com/signin) or use your GitHub account if you have one (see GitHub instructions below).
6868
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+
```
7075

7176
When using Glitch.com as your Cloud IDE, we do not create a virtual environment but we create the following files manually :
7277

@@ -102,9 +107,13 @@ python3 manage.py migrate
102107
python3 manage.py runserver $PORT
103108
```
104109

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 :
106111

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+
```
108117

109118
In order to see detailed error messages, you can activate Django debug logs for your Glitch application.
110119
Simply add the following at the end of the ```mysite/settings.py``` file.
@@ -132,6 +141,8 @@ LOGGING = {
132141
```
133142
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.
134143

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+
135146
### Virtual Environment
136147

137148
A virtual environment (also called a virtualenv) is like a private box we can

0 commit comments

Comments
 (0)