Sphene Community Tools

Community

Copyright © 2007-2018 by Herbert Poul

You are not logged in.
Login
Register

Change Language:



AddThis Social Bookmark Button

A Django site.

Powered by Sphene Community Tools

Tutorial/New

Tutorial / New

Back to Snip <-- Previous Change | Next Change -->

Diff Summary
Title
Date 2012-03-17 17:56:23 2012-03-17 18:02:23
Editor Herbert Poul Herbert Poul
Tags

2012-03-17 17:56:23 by Herbert Poul
2012-03-17 18:02:23 by Herbert Poul
33        }33        }
34    }34    }
3535
36now you can run syncdb:36now you can run syncdb:
3737
tt38    Herbys-i7:simpleproject herbert$ ./manage.py s
 >yncdb
39    Creating tables ...
40    Creating table auth_permission
41    Creating table auth_group_permissions
42    Creating table auth_group
43    Creating table auth_user_user_permissions
44    Creating table auth_user_groups
45    Creating table auth_user
46    Creating table django_content_type
47    Creating table django_session
48    Creating table django_site
49
50    You just installed Django's auth system, which
 > means you don't have any superusers defined.
51    Would you like to create one now? (yes/no): ye
 >s
52    Username (leave blank to use 'herbert'):
53    E-mail address: a@b.com
54    Password:
55    Password (again):
56    Superuser created successfully.
57    Installing custom SQL ...
58    Installing indexes ...
59    Installed 0 object(s) from 0 fixture(s)
60
61Because i am on Mac OSX i got the "ValueError: unk
 >nown locale: UTF-8" error, so i actually ran:
62
63    LC_CTYPE="en_US.UTF-8" ./manage.py syncdb
64
65but i don't think this should be necessary often..
 >
66
67Ok, now after our syncdb the default django projec
 >t should be stable and we can run it:
68
69
70    Herbys-i7:simpleproject herbert$ ./manage.py r
 >unserver
71    Validating models...
72
73    0 errors found
74    Django version 1.4b1, using settings 'simplepr
 >oject.settings'
75    Development server is running at http://127.0.
 >0.1:8000/
76    Quit the server with CONTROL-C.
77
78I guess this was not too exciting for anyone, sinc
 >e you already use django, so let's go ahead!
79
80# Sphene Community Tools
81
82## Installation
83
84First of all you have to install SCT (the communit
 >ytools project) - you can either download it and r
 >un setup.py or use the GIT version from https://gi
 >thub.com/hpoul/sct-communitytools
85
86I usually prefer to have the GIT version, so i che
 >cked it out into the same directory and added the 
 >'sct-communitytools/sphenecoll' path to the PYTHON
 >_PATH.
87


Powered by Sphene Community Tools