Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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`