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
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
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?
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
>
>
>
>
--
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
&
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
>
>
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
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
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
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
> 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
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
//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
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/
> >
>
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 -
15 matches
Mail list logo