Please, create a DB with the same settings (name, username, password) established by the team.
name for the DB should be 'crc_db', user: 'crcuser','password': 'myresources'
Create a virtual environment by running pip install virtualenv
. Then if you pick a name like myenv, run virtualenv myenv
If you are a Mac user, activate your environment by running source myenv/bin/activate
If you are a Windows user, activate your environment by running source myenv/Scripts/activate
After activating the environment, run pip install -r requirements.txt
to install all dependencies needed for this project. 🍾
More about the requirements.txt and pip freeze can be found at: (https://pip.pypa.io/en/stable/reference/pip_freeze/) 🎯
So, a project was created with Django. The main project folder is called code_resource_center
. Run cd code_resource_center
and run python manage.py runserver
. If everything works correctly you should see a Welcome page by Django on: http://127.0.0.1:8000/
Remember to run python manage.py migrate
to apply migrations.
Important: django startproject
creates a root app folder for the project (code_resource_center
). Inside, you can edit your settings. Your other apps will live inside the project, as 'sisters' of the 'crc' folder. Remember that if you want to commit anything or make changes to push to Git, you'll always have to go back to the parent folder which is where our repo lives (code-resource-center
)
To run the admin panel and make sure the DB is working fine, go to your root folder code_resource_center
and run python manage.py runserver
. Then, go to localhost:8000/admin/
. Login with the superuser ('crcuser') and password ('myresources')
Check this documentation in order to add Boostrap to the project. (https://pypi.org/project/django-bootstrap3/) For full documentation, check: (https://django-bootstrap3.readthedocs.io/en/latest/)