Django: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 2: | Zeile 2: | ||
== Admin freischalten == | == Admin freischalten == | ||
* | * DB anlegen: mysqladmin -u jones -p create guestbook --default-character-set=utf8 | ||
* Eintrag in DB: | * Eintrag in DB: | ||
<pre> | <pre> | ||
mysql -u | mysql -u jones -p guestbook | ||
insert into django_site (domain, name) values('localhost', 'admin'); | insert into django_site (domain, name) values('localhost', 'admin'); | ||
insert into auth_user (username, password) values('admin', 'geheim'); | |||
commit; | |||
</pre> | </pre> |
Version vom 27. Januar 2013, 21:33 Uhr
Admin freischalten
- DB anlegen: mysqladmin -u jones -p create guestbook --default-character-set=utf8
- Eintrag in DB:
mysql -u jones -p guestbook insert into django_site (domain, name) values('localhost', 'admin'); insert into auth_user (username, password) values('admin', 'geheim'); commit;