https://github.com/ansebi/hello_django
First steps in Python Django. Based on tutorials by CoreyMSchafer.
https://github.com/ansebi/hello_django
Last synced: about 2 months ago
JSON representation
First steps in Python Django. Based on tutorials by CoreyMSchafer.
- Host: GitHub
- URL: https://github.com/ansebi/hello_django
- Owner: Ansebi
- Created: 2022-10-09T18:35:40.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-01-07T18:35:45.000Z (4 months ago)
- Last Synced: 2025-01-21T12:35:54.468Z (4 months ago)
- Language: Python
- Homepage:
- Size: 12.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Based on the code and materials by CoreyMSchafer
>https://coreyms.com/
>
>https://github.com/CoreyMSchafer# Fresh Start to Django:
- create venv
- activate venv (if not using PyCharm)
- initialize Django
- create a django app
- run server## Hints:
the following paths are assumed here:
> Home derictory on Unix:
>>/home/username/
>
> The project:
>>/home/username/Hello_Django
>
>Project's path on Windows:
>>C:\Documents\Python\Hello_Django\### Create a Django app:
> C:\Documents\Python\Hello_Django\Hello_Django py manage.py startapp hello_django### Start a development server:
> On Windows, local computer:
>> C:\Documents\Python\Hello_Django\Hello_Django py manage.py runserver
>
> On virtual remote Unix machine:
>> cd \Hello_Django\Hello_Django\
>> python3 manage.py runserver 0.0.0.0:8000### Activate venv (Windows):
>Win+R
>>cmd
>>>cd C:\Documents\Python\Hello_Django\venv\Scripts
>>>activate
### Activate venv (Linux Ubuntu):
> source /Hello_Django/venv/Scripts/activate