Supervisor FATAl Exited too quickly (process log may have details(About inet_http_server and unix_http_server)

2017-09-09 Thread Jonathan Cheng
I wrote a Django project and I use supervisor with gunicorn /etc/supervisor/conf.d/weather.conf [group:weather_station] programs=site [program:site] directory=$PROJECT command=/home/nhcc/.local/bin/gunicorn -c /$PROJECT/weather_station/ gunicorn.conf.py -p

Django Gunicorn Import Error: no module name wsgi

2017-09-03 Thread Jonathan Cheng
I use Python3.5.2 Django1.9 I use `python -m venv venv/weather_station` to create virtual evnironment (/home/user/venv) This is my project tree in Ubuntu /home/user/myproject: (`export project=/home/user/myproject`) myproject | ├── gunicorn.conf.py ├── static │ ├── admin

Heroku push failed

2017-02-05 Thread Jonathan Cheng
In Win10 when i run "git push heroku master" the traceback showed: "python manage.py collectstatic" ,the python file ImportError: No module named 'markdown_deux' but i have installed the django-markdown-deux why i met this traceback?

Re: Import css in Django

2016-09-15 Thread Jonathan Cheng
8時43分17秒寫道: > > On 16/09/2016 1:10 AM, Jonathan Cheng wrote: > > thx your code,though i cant run it in cmd > That is correct. It is designed to be imported and called from > settings.py. > > I'll send you a screenshot off-line > > Mike > > > > --

Re: Import css in Django

2016-09-15 Thread Jonathan Cheng
ng it every time I looked at the dev-server > output helped a lot. > > Comments in announce.py show how to use it. > > Good luck > > Mike > > On 12/09/2016 1:58 AM, Jonathan Cheng wrote: > > thx reply,but it just can see the original html with no css,is my path &

Re: Import css in Django

2016-09-15 Thread Jonathan Cheng
thx everyone,all bugs were fixed early. Jonathan Cheng於 2016年9月11日星期日 UTC+8下午10時59分56秒寫道: > > I use django1.10 > > i reference the official doc > https://docs.djangoproject.com/en/1.10/intro/tutorial06/ > > my project name:mysite > >

Re: Import css in Django

2016-09-12 Thread Jonathan Cheng
1 19:15 GMT+02:00 Jonathan Cheng <jonatha...@gmail.com > >: > >> i fixed usint STATIC_ROOD = '/static/' >> it seems to no error >> but when i connect to my runserver >> the css of assets just doesn't work >> >> >> Jonathan Cheng於 2016年9月12日星期一 UTC+8

Re: Import css in Django

2016-09-12 Thread Jonathan Cheng
1 19:15 GMT+02:00 Jonathan Cheng <jonatha...@gmail.com > >: > >> i fixed usint STATIC_ROOD = '/static/' >> it seems to no error >> but when i connect to my runserver >> the css of assets just doesn't work >> >> >> Jonathan Cheng於 2016年9月12日星期一 UTC+8

Re: Import css in Django

2016-09-12 Thread Jonathan Cheng
i use href="{% static '/assets/css/main.css' %}" and it worked but if i want to use the all files in static is there any way to do? ludovic coues於 2016年9月12日星期一 UTC+8上午1時32分42秒寫道: > > If you look at the html send by django, what is the href value ? > > 2016-09-11 19:15 GM

Re: Import css in Django

2016-09-11 Thread Jonathan Cheng
i fixed usint STATIC_ROOD = '/static/' it seems to no error but when i connect to my runserver the css of assets just doesn't work Jonathan Cheng於 2016年9月12日星期一 UTC+8上午1時04分22秒寫道: > > here i explain , because i just test how main.css work, finally i want to > use the assets a

Re: Import css in Django

2016-09-11 Thread Jonathan Cheng
> your settings.py you wrote "STATIC_ROOT='/mysite/static/'" which says > that static should be subdirectory of mysite which its not a subdirectory > its in a same directory of mysite > > > On Sunday, September 11, 2016 at 8:48:57 PM UTC+4:30, Jonat

Re: Import css in Django

2016-09-11 Thread Jonathan Cheng
all static file and copy them in a > single directory. > > 2016-09-11 18:18 GMT+02:00 Jonathan Cheng <jonatha...@gmail.com > >: > > > > https://gist.github.com/cj10243/fb557903441d4a3e95190b854fbaabe1 > > > > ludovic coues於 2016年9月12日星期一 UTC+8上午12時0

Re: Import css in Django

2016-09-11 Thread Jonathan Cheng
//paste2.org/ or https://gist.github.com/ to share > it > > 2016-09-11 17:58 GMT+02:00 Jonathan Cheng <jonatha...@gmail.com > >: > > thx reply,but it just can see the original html with no css,is my path > > setted correct? > > > > ludovic coues於 2016年9

Re: Import css in Django

2016-09-11 Thread Jonathan Cheng
d } in the load > staticfiles tag > > 2016-09-11 7:29 GMT+02:00 Jonathan Cheng <jonatha...@gmail.com > >: > > I use django1.10 > > > > i reference the official doc > > https://docs.djangoproject.com/en/1.10/intro/tutorial06/ > > >

Import css in Django

2016-09-11 Thread Jonathan Cheng
I use django1.10 i reference the official doc https://docs.djangoproject.com/en/1.10/intro/tutorial06/ my project name:mysite structure: - mysite- - mysite - urls.py -views.py ... - templates -