Django(2.1.2), MySQL(8.0)
A project for self-study
An Example of this project
- Create virtual environment via venv:
python -m venv ENV
- Create Mysql database
- Change Settings.py to configurate database
- Install required modules:
pip install -r requirements.txt
- Be Noticed:
- This project is using mysql. You have to install sqlclient for python.
- You also need to migrate models to database(after setting up database on settings.py):
python manage.py makemigrations
python manage.py migrate
- To use xamdin, you should create superuser:
python manage.py createsuperuser
- To run server:
python manage.py runserver
- Modify data on xadmin(localhost for example):
- http://localhost:8000/xadmin
- 10/29:
Created virtual enviroment django_env and Django dev enviroment on Pycharm.
MySQL database mooc_platform on localhost and installed sqlclient for python. - 11/05:
Created 4 basic app:users, organization, courses, operation. operation is in the higher level that could import other apps . - 11/07:
Finished models.py in user and course. Started doing HTML/CSS files - 11/15:
Finished models.py in organization and operaton.
Found HTML/CSS templates online. - 11/24:
Setting up using xadmin instead of default admin in Django.
Started JS parts.
Finished index.html and login.html - 12/2:
Finshing up xadmin Configuration on created models. - 12/10:
Finished index, login and register. For captach in register.html using django-simple-captcha - 12/14:
Finished email verification - 12/15:
Reconfigured the set up ..... - 1/7:
Almost finished the project, host on pythonanywhere.com