X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=blobdiff_plain;f=README;h=2b129de620debcd64dde441b45167960d7d1519c;hp=1b17b87c48f604916a9a2bb98653962dea16b7de;hb=0c6e0197da94e834beb0d6b8e9b46011efa4e1a5;hpb=7032808b950a714e27fb3ab1d88104f234c8915f diff --git a/README b/README index 1b17b87c..2b129de6 100644 --- a/README +++ b/README @@ -17,13 +17,18 @@ See the devel/ subdir for more devel-oriented doc. * edit myslice/config.py and enter the details of your manifold backend * init django -$ manage.py syncdb +$ ./manage.py syncdb +$ ./manage.py migrate * gather static files $ ./manage.py collectstatic (formerly, we used make static, which is deprecated) -- or -- $ ./manage.py collectstatic --noinput -$ make + +* gather templates files + for now we still seem to rely on a make-based templates-collection process + that creates all-templates/ +$ make templates * run a local server: $ manage.py runserver 0.0.0.0:8000 @@ -130,13 +135,10 @@ package is published) ========== automatically generated -* all-static: (generated, no need to source-control) - this is where 'make static' will gather all your static contents if you run a local server - make has convenience targets to refresh this area - $ make static - $ make clean-static +* static/: (generated by collectstatic, see above, do not source-control) + $ manage.py [ --noinput ] collectstatic -* django-static +* all-templates/ * myslice.sqlite3 this is where django stores its own stuff, as per settings.py @@ -151,10 +153,10 @@ package is published) .. the recommended layout for the various files and pieces (py, html, js and css) with django is IMHO really painful; we *SHOULD* use e.g. - plugins/simplelist.py, - plugins/templates/plugins.html, - plugins/static/js/simplelist.js - plugins/static/css/simplelist.css + plugins/quickfilter/quickfilter.py, + plugins/quickfilter/templates/quickfilter.html, + plugins/quickfilter/static/js/quickfilter.js + plugins/quickfilter/static/css/quickfilter.css which I have tried doing for a while but I found myself just hopping around in the file tree all day long, wasting cycles big time