Hey, try this:
In settings:
# If running collectstatic
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
# make sure if you have multiple apps that you want to direct to specific
location of static files
STATIC_DIRS = (
os.path.join(BASE_DIR, '../apps/core/static'),
)
Finally if you're us
I have to display a HTML page with its supporting css, js and images. So i
create a template folder to put HTML in it then i create a static folder in
which i create css, js and img folder and put related files into these
folders.
then I configure the
*Settings.py*
BASE_DIR = os.path.dirname(os
I am rebuilding a new server from scratch now.
New IP: Same setup with new IP from Digital Ocean 1click install -
http://162.243.58.204/
I am going to try and setup the Static files directory again.
Since they are using Django 1.6 and the command makemigration and migrate
are not in 1.6
Sho
Where is STATIC_ROOT ?
static_root path needs to match with nginx /static location.
El miércoles, 1 de junio de 2016, Roger Lanoue jr
escribió:
> Hi Django users group.
> I am test and learning django out. I have a testing server and got my
test page up.
> Started to play with the Django suit
Hi Django users group.
I am test and learning django out. I have a testing server and got my test
page up.
Started to play with the Django suit control panel and ran in to some
problems with my setup.
*Server: Digital Ocean one click install.*
Ubuntu 14.04
Nginx
Postgres
python 2.7
django 1.6
Thanks Tom,
I ran the command python manage.py collectstatic and it copied across new
static content i've added to [project]/static/ which is my STATIC_ROOT. But
still no css for the admin pages.
Also thanks, I do have to set those up and figure them out, I've seen a few
tuts for them so will
On 2013-09-28, at 4:58 PM, Tom Lockhart wrote:
>
> On 2013-09-28, at 4:21 PM, Jason S wrote:
>
>> Thanks Tom,
>> I had a pretty painful install experience over a few weeks and had sudo'd a
>> command I shouldn't have when doing the GAE install.
>> After that experience i'd thought it'd be a
On 2013-09-28, at 4:21 PM, Jason S wrote:
> Thanks Tom,
> I had a pretty painful install experience over a few weeks and had sudo'd a
> command I shouldn't have when doing the GAE install.
> After that experience i'd thought it'd be a pain to sort it out but i've just
> chown'd the project di
Thanks Tom,
I had a pretty painful install experience over a few weeks and had sudo'd a
command I shouldn't have when doing the GAE install.
After that experience i'd thought it'd be a pain to sort it out but i've
just chown'd the project directory and the /tmp/dev_appserver.searchindexes
(afte
On 2013-09-28, at 3:27 PM, Jason S wrote:
> I can now access my CSS file and i've confirmed it's location by changing its
> name and confirming the dev server can't see it any more.after I change the
> file name.
>
> The directory its finding it is under [project]/templates/static/css
> Sorry
I can now access my CSS file and i've confirmed it's location by changing
its name and confirming the dev server can't see it any more.after I change
the file name.
The directory its finding it is under [project]/templates/static/css
Sorry, no idea why its working but I suspect its permissions b
Hi,
I'm new to django and web development but have set up a project and run
through a few python and django tuts.
I've gotten stuck importing CSS (and other static content) using the static
settings available in the settings.py file and have attempted to resolve
the issue by referring to a sampl
12 matches
Mail list logo