https://github.com/pytlicek/django-template
Custom Django project template
https://github.com/pytlicek/django-template
django python3
Last synced: 6 months ago
JSON representation
Custom Django project template
- Host: GitHub
- URL: https://github.com/pytlicek/django-template
- Owner: Pytlicek
- License: mit
- Created: 2023-08-14T19:39:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-10T12:29:54.000Z (about 2 years ago)
- Last Synced: 2025-09-01T07:31:49.482Z (6 months ago)
- Topics: django, python3
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Custom Django project template
### Install with poetry
- `python3.10 -m virtualenv .venv`
- `pip install -U poetry`
- `poetry install`
- `poetry shell`
### Configuration
- Migrations:
- `python manage.py makemigrations`
- `python manage.py migrate`
- Create/Edit .env file: `cp .env-example .env`
- Create user: `python manage.py createsuperuser`
- Change user's password: `python manage.py changepassword info@example.com`
- Rename `my_project` folder and `my_project` references to your project name
### Usage
- Run Django Server: `python manage.py runserver`
- Django Admin URL: [http://127.0.0.1:8000/admin/](http://127.0.0.1:8000/admin/)
- Login to Django Admin with User/Pass fe: `info@example.com`/`info@example.com`
- API URL: http://127.0.0.1:8000/api/docs#/
- Optionally add packages with: `poetry add django-environ`