diff --git a/en/django_start_project/README.md b/en/django_start_project/README.md index 577ead8459b..aca10bc2950 100644 --- a/en/django_start_project/README.md +++ b/en/django_start_project/README.md @@ -131,43 +131,6 @@ ALLOWED_HOSTS = ['localhost', '127.0.0.1', '.pythonanywhere.com'] > Also add `.amazonaws.com` to the `ALLOWED_HOSTS` if you are using cloud9 -> If you are hosting your project on `Glitch.com`, let us protect the Django secret key that needs to -> remain confidential (otherwise, anyone remixing your project could see it): -> -> * First, we are going to create a random secret key. -> Open the Glitch terminal again, and type the following command: -> -> {% filename %}command-line{% endfilename %} -> ```bash -> python -c 'from django.core.management.utils import get_random_secret_key; \ -> print(get_random_secret_key())' -> ``` -> This should display a long random string, perfect to use as a secret key for your brand new Django web site. -> We will now paste this key into a `.env` file that Glitch will only show you if you are the owner of the web site. -> -> * Create a file `.env` at the root of your project and add the following property in it: -> -> {% filename %}.env{% endfilename %} -> ```bash -> # Here, inside the single quotes, you can cut and paste the random key generated above -> SECRET='3!0k#7ds5mp^-x$lqs2%le6v97h#@xopab&oj5y7d=hxe511jl' -> ``` -> * Then update the Django settings file to inject this secret value and set the Django web site name: -> -> {% filename %}mysite/settings.py{% endfilename %} -> ```python -> import os -> -> SECRET_KEY = os.getenv('SECRET') -> ``` -> * And a little further down in the same file, we inject the name of your new Glitch website: -> -> {% filename %}mysite/settings.py{% endfilename %} -> ```python -> ALLOWED_HOSTS = [os.getenv('PROJECT_DOMAIN') + ".glitch.me"] -> ``` -> The `PROJECT_DOMAIN` value is automatically generated by Glitch. -> It will correspond to the name of your project. ## Set up a database @@ -229,13 +192,6 @@ If you are on a Chromebook, use this command instead: {% filename %}Cloud 9{% endfilename %} ``` (myvenv) ~/djangogirls$ python manage.py runserver 0.0.0.0:8080 -``` -or this one if you are using Glitch: - -{% filename %}Glitch.com terminal{% endfilename %} -``` -$ refresh - ``` If you are on Windows and this fails with `UnicodeDecodeError`, use this command instead: @@ -259,10 +215,6 @@ If you're using a Chromebook and Cloud9, instead click the URL in the pop-up win ``` https://.vfs.cloud9.us-west-2.amazonaws.com ``` -or on Glitch: -``` -https://name-of-your-glitch-project.glitch.me -``` You can open this in another browser window and you should see the Django install worked page.