Thanks to visit codestin.com
Credit goes to github.com

Skip to content

The server side of the "Akaskhoone", developed using Python and Django framework. Note: This project was developed in only four weeks as a part of the "Rahnema College" summer internship, 2018.

Notifications You must be signed in to change notification settings

Akaskhoone/Akaskhoone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

285 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

akaskhoone server

this repo handles backend of akaskhoone project

Requirements

  • python 3.6
  • django 2.1
  • djangorestframework 3.8
  • djangorestframework_simplejwt 3.2.3
  • redis 2.10.6
  • requests 2.19.1
  • mysqlclient

Setup

installing virtualenv

macOS / Linux / Windows:

pip install virtualenv

creating new virtualenv

macOS / Linux / Windows

virtualenv env_akaskhoone

activate virtualenv with this command

macOS / Linux:

source env_akaskhoone/bin/activate

Windows:

.\env_akaskhoone\Scripts\activate

installing requirements

macOS / Linux / Windows:

pip install -r akaskhoone/requirements.txt

Migrating

in root directory of project run this command for migrating models

macOS / Linux / Windows:

export DJANGO_SETTINGS_MODULE=“akaskhoone.settings.base”
python manage.py makemigrations --settings=akaskhoone.settings.base
python manage.py migrate --settings=akaskhoone.settings.base

Loading Fixture

macOS / Linux / Windows:

python manage.py loaddata user profile tag post board --settings=akaskhoone.settings.base

and then:

mkdir media
cp -r accounts/fixtures/profile_photos media
cp -r social/fixtures/posts media

Runserver

in root directory of project run this command:

change the DEBUG = True for testing project with local Django server.

macOS / Linux / Windows:

python manage.py runserver --settings=akaskhoone.settings.base

and then checkout 127.0.0.1:8000

About

The server side of the "Akaskhoone", developed using Python and Django framework. Note: This project was developed in only four weeks as a part of the "Rahnema College" summer internship, 2018.

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages