From 56c78394a9e2480b8bb8d0061cb40134e394f9c2 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Mon, 24 Oct 2016 21:47:20 -0200 Subject: [PATCH] added a full django presentation --- django-full.html | 167 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 167 insertions(+) create mode 100644 django-full.html diff --git a/django-full.html b/django-full.html new file mode 100644 index 0000000..6fb34aa --- /dev/null +++ b/django-full.html @@ -0,0 +1,167 @@ + + + + + + + Entendendo DJANGO + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+

+

Django

+

Uma Introdução

+

+
+ +
+
+

Projeto

+ +

"Projeto" é como Django chama a base do sistema, + que não passa de um conjunto de apps.

+ +

Criado com django-admin startproject [PROJECTNAME] ..

+
+ +
+

Projeto: startproject

+ +

+project/
+├── manage.py
+└── project
+    ├── __init__.py
+    ├── settings.py
+    ├── urls.py
+    └── wsgi.py
+						
+ + +
+ +
+

Time out: rodando o servidor de desenvolvimento

+ +

+$ python manage.py runserver
+Performing system checks...
+
+System check identified no issues (0 silenced).
+
+You have 13 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
+Run 'python manage.py migrate' to apply them.
+
+October 24, 2016 - 23:04:50
+Django version 1.10.2, using settings 'project.settings'
+Starting development server at http://127.0.0.1:8000/
+Quit the server with CONTROL-C.
+						
+ + +
+ +
+

+$ python manage.py migrate
+Operations to perform:
+  Apply all migrations: admin, auth, contenttypes, sessions
+Running migrations:
+  Applying contenttypes.0001_initial... OK
+  Applying auth.0001_initial... OK
+  Applying admin.0001_initial... OK
+  Applying admin.0002_logentry_remove_auto_add... OK
+  Applying contenttypes.0002_remove_content_type_name... OK
+  Applying auth.0002_alter_permission_name_max_length... OK
+  Applying auth.0003_alter_user_email_max_length... OK
+  Applying auth.0004_alter_user_username_opts... OK
+  Applying auth.0005_alter_user_last_login_null... OK
+  Applying auth.0006_require_contenttypes_0002... OK
+  Applying auth.0007_alter_validators_add_error_messages... OK
+  Applying auth.0008_alter_user_username_max_length... OK
+  Applying sessions.0001_initial... OK
+						
+
+
+
+
+ + + + + + + +