Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexfer/django-app
A simple application created using Django framework.
https://github.com/alexfer/django-app
app-django bootstrap css database django django-application html jquery mysql mysql-database python
Last synced: 1 day ago
JSON representation
A simple application created using Django framework.
- Host: GitHub
- URL: https://github.com/alexfer/django-app
- Owner: alexfer
- License: mit
- Created: 2022-11-10T17:37:07.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T07:36:48.000Z (almost 2 years ago)
- Last Synced: 2023-08-16T06:21:38.708Z (over 1 year ago)
- Topics: app-django, bootstrap, css, database, django, django-application, html, jquery, mysql, mysql-database, python
- Language: Python
- Homepage: https://github.com/alexfer/django-project
- Size: 172 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Django App
### Development
**Note** : Make sure you have Python version 4.0### Environment Setup
`$ git clone https://github.com/alexfer/django-project.git`
`$ cd django-project/`
If virtualenv is not installed [(What is virtualenv?)](https://www.youtube.com/watch?v=N5vscPTWKOk&t=313s):
`$ pip install virtualenv`
Create a virtual environment
`$ virtualenv venv`
Activate the environment everytime you open the project
`$ source venv/Scripts/activate`
Install requirements
`$ pip install -r requirements.txt`
Create .env file and configure
[SMTP config see](https://docs.djangoproject.com/en/4.1/topics/email/#smtp-backend)
[Database config see](https://docs.djangoproject.com/en/4.1/ref/databases/)
`$ cp app/.env.example app/.env `
Run migrations for Database
`$ python manage.py makemigrations`
`$ python manage.py migrate`
Create superuser for Admin Login
`$ python manage.py createsuperuser`
Enter your desired username, email and password. Make sure you remember them as you'll need them in future.
eg.
Username: admin
Email: [email protected]
Password:All Set!
Now you can run the server to see your application up & running
`$ python manage.py runserver`
To exit the environment
`$ deactivate`
Every time you want to open the application in browser, make sure you run:
`$ source venv/Scripts/activate`
`$ python manage.py runserver`