X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=README;h=1b17b87c48f604916a9a2bb98653962dea16b7de;hb=2b725d334e5115adbd26a297ba5c3720a6f852f9;hp=619473b85c148368612e170d2cff15c16a48b1dc;hpb=fd94e2aa074f084afdecf26f023c8e369fec6605;p=myslice.git diff --git a/README b/README index 619473b8..1b17b87c 100644 --- a/README +++ b/README @@ -6,7 +6,7 @@ See the devel/ subdir for more devel-oriented doc. ==================== 1 minute howto -* REQUIREMENTS is to have python + django installed django +* REQUIREMENTS is to have python + django (1.5.2) installed django ** should be straightforward ** see devel/django-install.txt in case of trouble @@ -23,6 +23,7 @@ $ manage.py syncdb $ ./manage.py collectstatic (formerly, we used make static, which is deprecated) -- or -- $ ./manage.py collectstatic --noinput +$ make * run a local server: $ manage.py runserver 0.0.0.0:8000 @@ -236,11 +237,15 @@ $./manage.py migrate if it fails: -sqlite> DROP TABLE my_table [from your DB] +1. go to myslice directory +2. do sqlite3 myslice.sqlite3 [if sqlite3: command not found, do $apt-get install sqlite3] +3. check the list of tables with sqlite> .tables +4. if you find those tables that was mentioned in the failure message while running $./manage.py migrate + do sqlite> DROP TABLE mentioned_table + [mentioned_table = the tables that was explicity mentioned in the failure message of $./manage.py migrate] +5. sqlite> .quit +6. $./manage.py migrate -then - -$./manage.py migrate