![]() System check identified no issues (0 silenced).ĭjango version 3.2.4, using settings 'django_ttings' You should see the following output: Watching for file changes with StatReloader Now, start the Django development server using the following command. manage.py collectstatic Test the Django Development Server Next, gather all the static content into the directory. Set your admin username and password as shown below: Username (leave blank to use 'root'): admin Next, create an admin user with the following command. Save and close the file then migrate the initial database schema to the PostgreSQL database. STATIC_ROOT = os.path.join(BASE_DIR, 'static/') 'ENGINE': 'django.db.backends.postgresql_psycopg2', Next, edit the settings.py and define your database settings: nano ~/django_project/django_project/settings.pyįind and change the following lines: ALLOWED_HOSTS = Next, run the following command to create a Django project: django-admin.py startproject django_project ~/django_project
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |