Skip to content

Commit 38c9fca

Browse files
author
Mohd Irfan
committed
Backend Ready Application
0 parents  commit 38c9fca

132 files changed

Lines changed: 4960 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/studybud/env
2+
/backend/studybud/env
3+
4+

README.md

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# 7 Hours Django Course by DennisIvy
2+
3+
![What is django](docs/img/what-is-django.png)
4+
![What is web framework](docs/img/what-is-web-framework.png)
5+
![Backend vs Frontend Frameworks](docs/img/backend-vs-frontend-frameworks.png)
6+
![Django Popular Apps](docs/img/django-example-apps.png)
7+
![Django APIs](docs/img/django-api.png)
8+
![Other Python Frameworks](docs/img/other-python-frameworks.png)
9+
![MVT](docs/img/mvt.png)
10+
![MVT](docs/img/lets-get-started.png)
11+
12+
- Resources - Github Dennis Ivy [StudyBud](https://github.com/divanov11/StudyBud)
13+
- Extensions - Atom One Dark Theme, Prettier, Auto Rename Tag
14+
15+
**Install Virtual Environment:**
16+
```shell
17+
pip install virtualenv
18+
```
19+
20+
**Create Virtual Env:**
21+
```shell
22+
virtualenv env
23+
```
24+
25+
**Activate Env:**
26+
```shell
27+
env\Scripts\activate
28+
```
29+
- To do deactivate Env:
30+
```shell
31+
env\Scripts\deactivate
32+
```
33+
34+
**Install Django:**
35+
```shell
36+
pip install django
37+
```
38+
39+
**Create Project:**
40+
```shell
41+
django-admin startproject studybud .
42+
```
43+
- Most Useful Commands:
44+
- makemigrations
45+
- migrate
46+
- runserver
47+
- startapp
48+
- startproject
49+
50+
**Run Server:**
51+
```shell
52+
python manage.py runserver
53+
```
54+
55+
**Create App:**
56+
```shell
57+
python manage.py startapp base
58+
```
59+
60+
**Before creating model run migrate:**
61+
```shell
62+
python mana.py migrate
63+
```
64+
65+
66+
**Create Model then Make Migration:**
67+
```shell
68+
python manage.py makemigrations
69+
# then
70+
python manage.py migrate
71+
```
72+
73+
**Create Admin Dashboard Account:**
74+
```shell
75+
python manage.py createsuperuser
76+
```
77+
78+
**Register Your Model to view in the admin panel:**
79+
```shell
80+
from .models import Room
81+
# Register your models here.
82+
83+
admin.site.register(Room)
84+
85+
```
86+
87+
88+
89+

backend_studybud/base/__init__.py

Whitespace-only changes.
197 Bytes
Binary file not shown.
594 Bytes
Binary file not shown.
564 Bytes
Binary file not shown.
843 Bytes
Binary file not shown.
3.08 KB
Binary file not shown.
1.26 KB
Binary file not shown.
8.69 KB
Binary file not shown.

0 commit comments

Comments
 (0)