Portfolio Django web application
Django full functional portfolio + blog web application.
Download or clone the reposatory. Goto project root folder.
C:\>git clone https://github.com/Nasim-NIMU/nasimportfolio.git
C:\>cd nasimportfolio
C:\nasimportfolio>cd djnago
C:\nasimportfolio\django>scripts\activate.bat
(django)C:\nasimportfolio\django>cd ..
(django)C:\nasimportfolio>pip freeze > requirements.txt
(django)C:\nasimportfolio>pip install -r requirements.txt
(django)C:\nasimportfolio>python manage.py migrate
(django)C:\nasimportfolio>python manage.py runserver
### It will start a local server on 'http://localhost:8000'
create a super user using,
(django)C:\nasimportfolio>python manage.py createsuperuser
It's ready to deploy in heroku.Before deploy in heroku, change the local database in settings.py according to:
You will find database settings like this.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
You need to change it like below,
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'personal_db',
'USER': 'your user',
'PASSWORD': 'your password',
'HOST': 'localhost',
'PORT': '2000',
}
}
###### Congrats! everything is setup. Your project ready to deploy in heroku for live your project online.
Get any error, send me the scrrenshot at my inbox, i will try to give you the solution.
Facebook: https://facebook.com/Nasim.nimu2011
Email: [email protected]
Phone: 01777-424142