Skip to content

Commit 672448f

Browse files
author
App Generator
committed
Added - App & Forms Django Apps
1 parent b09474f commit 672448f

File tree

27 files changed

+444
-1
lines changed

27 files changed

+444
-1
lines changed

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
5+
# tests and coverage
6+
*.pytest_cache
7+
.coverage
8+
9+
# database & logs
10+
*.db
11+
*.sqlite3
12+
*.log
13+
14+
# venv
15+
env
16+
venv
17+
18+
# other
19+
.DS_Store
20+
21+
# javascript
22+
package-lock.json
23+
24+
staticfiles/*
25+
!staticfiles/.gitkeep
26+
.vscode/symbols.json

LICENSE.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# MIT License
2+
3+
Copyright (c) 2019 - present [AppSeed](http://appseed.us/)
4+
5+
<br />
6+
7+
## Licensing Information
8+
9+
<br />
10+
11+
| Item | - |
12+
| ---------------------------------- | --- |
13+
| License Type | MIT |
14+
| Use for print | **YES** |
15+
| Create single personal website/app | **YES** |
16+
| Create single website/app for client | **YES** |
17+
| Create multiple website/apps for clients | **YES** |
18+
| Create multiple SaaS applications | **YES** |
19+
| End-product paying users | **YES** |
20+
| Product sale | **YES** |
21+
| Remove footer credits | **YES** |
22+
| --- | --- |
23+
| Remove copyright mentions from source code | NO |
24+
| Production deployment assistance | NO |
25+
| Create HTML/CSS template for sale | NO |
26+
| Create Theme/Template for CMS for sale | NO |
27+
| Separate sale of our UI Elements | NO |
28+
29+
<br />
30+
31+
---
32+
For more information regarding licensing, please contact the AppSeed Service < *support@appseed.us* >

README.md

Lines changed: 73 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,73 @@
1-
# django-learn-by-coding
1+
# Learn Django by Coding
2+
3+
Open-source project provided by AppSeed to help beginners accommodate and learn Django faster. For newcomers, Django is a popular web framework designed and actively supported by Built by experienced developers, it takes care of much of the hassle of Web development, so you can focus on writing your app without needing to reinvent the wheel.
4+
5+
> **For support and more [Django Samples](https://appseed.us/admin-dashboards/django) join [AppSeed](https://appseed.us).**
6+
7+
<br />
8+
9+
## Create a new Django project
10+
11+
> Create a virtual environment
12+
13+
```bash
14+
$ # Linux-based systems
15+
$ virtualenv env
16+
$ source env/bin/activate
17+
```
18+
19+
For Windows systems, the syntax is different
20+
21+
```bash
22+
$ virtualenv env
23+
$ .\env\Scripts\activate
24+
```
25+
26+
<br />
27+
28+
> Install Django using PIP, the official package manager for Python
29+
30+
```bash
31+
$ pip install django
32+
```
33+
34+
<br />
35+
36+
> Create project directory
37+
38+
```bash
39+
$ mkdir learn-django
40+
$ cd learn-django
41+
```
42+
43+
<br />
44+
45+
> Create project core
46+
47+
```bash
48+
$ django-admin startproject config .
49+
```
50+
51+
<br />
52+
53+
> Set up the database
54+
55+
```bash
56+
$ python manage.py makemigrations
57+
$ python manage.py migrate
58+
```
59+
60+
<br />
61+
62+
> Start the project
63+
64+
```bash
65+
$ python manage.py runserver
66+
$
67+
$ # Access the web app in browser: http://127.0.0.1:8000/
68+
```
69+
70+
<br />
71+
72+
---
73+
Learn Django by Coding - Provided and actively supported by AppSeed [App Generator](https://appseed.us)

app/__init__.py

Whitespace-only changes.

app/admin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.contrib import admin
2+
3+
# Register your models here.

app/apps.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from django.apps import AppConfig
2+
3+
4+
class AppConfig(AppConfig):
5+
default_auto_field = 'django.db.models.BigAutoField'
6+
name = 'app'

app/migrations/__init__.py

Whitespace-only changes.

app/models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.db import models
2+
3+
# Create your models here.

app/tests.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.test import TestCase
2+
3+
# Create your tests here.

app/urls.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# -*- encoding: utf-8 -*-
2+
"""
3+
Copyright (c) 2019 - present AppSeed.us
4+
"""
5+
6+
from django.urls import path, re_path
7+
from app import views
8+
9+
urlpatterns = [
10+
11+
# The home page
12+
path('', views.index, name='home'),
13+
]

0 commit comments

Comments
 (0)