The source code of WeCode.ly blog. This website is currently being updated to incoporate Django REST.
- Framework: Django
- Database: PostgreSQL
- Create new Postgres database
- Please email me at anas.buhayh@gmail.com if you would like to connect to the live database
- Clone the project to your preferred directory
https://github.com/AnasBuhayh/weCode.git
- Chenge the database variables to your newly created ones in the settings.py file
NAME = '[database name]'
USER = '[database user]'
PASSWORD = '[database password]'
HOST = 'localhost'
PORT = '5432'
- Recomended: Create a virtual environment
python -m venv [env-name]
- Recomended: Run virtual environment
.\[env-name]\Scripts\activate
- Install requirements
pip install -r .\requirements.txt
- Make migrations
python manage.py makemigrations
then
python manage.py migrate
- Create superuser
python manage.py createsuperuser
- Run application
python ./manage.py runserver