Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
e0d096d
Initial Commit
AlexandrDidyk May 31, 2014
76c6f9d
Settings updated for compatibility with Django 1.6
AlexandrDidyk Jun 4, 2014
8a4a7f9
Project setting updated for django 1.6 compatibility
AlexandrDidyk Jun 4, 2014
5e9c9f7
#1
AlexandrDidyk Jun 4, 2014
ad4a3b1
#1 Setting Updated
AlexandrDidyk Jun 4, 2014
6f300c6
Delete .pydevproject
AlexandrDidyk Jun 4, 2014
0be1443
Delete .project
AlexandrDidyk Jun 4, 2014
08bac4c
Delete manage.py
AlexandrDidyk Jun 4, 2014
260d3c0
Initial commit
AlexandrDidyk Jun 4, 2014
e6b7590
Initial
AlexandrDidyk Jun 4, 2014
4813210
Test
AlexandrDidyk Jun 4, 2014
c7e5bf7
Added test for admin/admin credentials
AlexandrDidyk Jun 4, 2014
7872126
#1 Add model, view, changed template of index page, updated fixtures.
AlexandrDidyk Jun 4, 2014
28ef381
ticket: 1 Add test for index page view
AlexandrDidyk Jun 5, 2014
d955b23
ticket: 1 Changed according to mistakes
AlexandrDidyk Jun 5, 2014
eebd873
ticket: 1 Modofied Makefile, tests.py, templates
AlexandrDidyk Jun 5, 2014
a1e44a9
ticket: 1 Modified template
AlexandrDidyk Jun 6, 2014
fb5830d
ticket: 1 /static/ changed to STATIC_URL in base template
AlexandrDidyk Jun 6, 2014
2f4b533
ticket: 1 CSS fixed
AlexandrDidyk Jun 6, 2014
3de7773
ticket: 1 Fixed
AlexandrDidyk Jun 6, 2014
5838aff
ticket: 1 Fixed
AlexandrDidyk Jun 6, 2014
416dff0
ticket: 1 fixed
AlexandrDidyk Jun 6, 2014
9d2ed48
ticket: 1 Makefile moved
AlexandrDidyk Jun 6, 2014
4880198
ticket: 1 Makefile fixed
AlexandrDidyk Jun 7, 2014
99e27ba
ticket: 1 Last commit
AlexandrDidyk Jun 7, 2014
bf3fdf7
ticket: 1 refactored
AlexandrDidyk Jun 7, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
MANAGE=django-admin.py
PROJECT = django_hello_world
MANAGE = manage.py
PWD = cd $(PROJECT)

test:
PYTHONPATH=`pwd` DJANGO_SETTINGS_MODULE=django_hello_world.settings $(MANAGE) test hello
$(PWD) && python $(MANAGE) test

run:
PYTHONPATH=`pwd` DJANGO_SETTINGS_MODULE=django_hello_world.settings $(MANAGE) runserver
$(PWD) && python $(MANAGE) runserver

syncdb:
PYTHONPATH=`pwd` DJANGO_SETTINGS_MODULE=django_hello_world.settings $(MANAGE) syncdb --noinput
$(PWD) && python $(MANAGE) syncdb --noinput
27 changes: 26 additions & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1 +1,26 @@
Django Hello World Project
#1 base Create basic django project that would present your name, surname, bio, contacts on the main page. Data should be stored in the DB, that's
manage.py syncdb
manage.py runserver
open the browser and all data are in, loaded from fixtures
#3 middleware&lists Create middleware that stores all http requests in the DB
#4 template context Create template-context-processor that adds django.settings to the context
#5 forms&auth Create page with form that allows to edit data, presented on the main page
#6 forms-widgets&jquery For birth date on the same page add calendar widget
#8 template-tags Create tag that accepts any object and renders the link to its admin edit page ({% edit_link request.user %})
#9 commands Create django command that prints all project models and the count of objects in every model
#10 signals Create signal processor that, for every model, creates the db entry about the object creation/editing/deletion
#13 understanding Your customer sends the change request. Task: understand what he needs and implement.

Requirements

sqlite database, don't forget to add it to .gitignore
after python manage.py syncdb --noinput should work everything, including administrator login with admin/admin credentials
use virtualenv, create requirements.txt with required django version and additional libraries
doublecheck that everything works fine:

$ git clone github:yourproject.git
$ cd yourproject
$ virtualenv --no-site-packages .env
$ source .env/bin/activate
$ .env/bin/pip install -r requirements.txt
$ python manage.py syncdb --no-input
Empty file removed django_hello_world/__init__.py
Empty file.
Empty file.
20 changes: 0 additions & 20 deletions django_hello_world/hello/fixtures/initial_data.json

This file was deleted.

3 changes: 0 additions & 3 deletions django_hello_world/hello/models.py

This file was deleted.

6 changes: 0 additions & 6 deletions django_hello_world/hello/templates/base.html

This file was deleted.

8 changes: 0 additions & 8 deletions django_hello_world/hello/templates/hello/home.html

This file was deleted.

27 changes: 0 additions & 27 deletions django_hello_world/hello/tests.py

This file was deleted.

8 changes: 0 additions & 8 deletions django_hello_world/hello/views.py

This file was deleted.

14 changes: 0 additions & 14 deletions django_hello_world/manage.py

This file was deleted.

146 changes: 0 additions & 146 deletions django_hello_world/settings.py

This file was deleted.

17 changes: 0 additions & 17 deletions django_hello_world/urls.py

This file was deleted.

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Django >= 1.3, < 1.4
Django >= 1.5
django-annoying >= 0.7.6