Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kadermiyanyedi/priviasecurityinternshipchallenge
Privia Security tarafından bir sonraki aşamaya geçmek için verilen staj görevi
https://github.com/kadermiyanyedi/priviasecurityinternshipchallenge
Last synced: 14 days ago
JSON representation
Privia Security tarafından bir sonraki aşamaya geçmek için verilen staj görevi
- Host: GitHub
- URL: https://github.com/kadermiyanyedi/priviasecurityinternshipchallenge
- Owner: Kadermiyanyedi
- Created: 2020-08-15T10:28:02.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-07T06:41:43.000Z (about 4 years ago)
- Last Synced: 2023-10-20T20:53:40.881Z (about 1 year ago)
- Language: Python
- Size: 10.9 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Django Simple Rest Api Project
## Setup
### Project Clone
- `git clone [email protected]:Kadermiyanyedi/PriviaSecurityInternshipChallenge.git`
- `cd PriviaSecurityInternshipChallenge`
---
### Create a virtual environment to isolate our package dependencies locally1. Create venv
`python -m venv env`2. Activate venv
- On Linux use :
`source env/bin/activate`- On Windows use :
`env\Scripts\activate`
---
### Install Django and Django REST framework into the virtual environment
- `pip install -r requirements.txt`### Migrate Database
- `cd blog`
- `python manage.py migrate`### Admin Panel and Login Page
username : admin
password: adminIf you want create a new super user :
`python manage.py createsuperuser --email [email protected] --username admin`### Start Server
`python manage.py runserver`Go to localhost:8000 in your browser
### Run Test
`python manage.py test api`