i-Blogger
BlogApp Demo Development ๐จโ๐ป
Note : Make sure you have Python version 3.8+ Environment Setup ๐
$ git clone https://github.com/tiwariji-mukund/blog-website.git
$ cd django_blog_project/
If virtualenv is not installed (What is virtualenv?):
$ pip install virtualenv
Create a virtual environment
$ virtualenv virt
Activate the environment everytime you open the project
$ source virt/Scripts/activate
Install requirements ๐
$ pip install -r requirements.txt
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: HighlyConfidentialPassword
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 virt/Scripts/activate
$ python manage.py runserver