Antonis, i think i understand the logic now. Thanks for the help.
Yingi Kem
> On 18 Jul 2017, at 3:25 PM, Antonis Christofides
> wrote:
>
> Hi,
>
> Define staticUrl in the base template, like this:
>
>
> staticUrl = "{% static '' %}";
>
>
>
> Then, inside d6.js:
>
> var imageBank = sta
When i opened the console in my browser. It shows the error 'staticUrl is not
defined'.
The problem i am having is this. You are making use of a static file
(blank.gif) inside another static file (d6.js)
Do you have to load static files inside the d6.js much thesame way you load
static files
Okk
The static url you defined in the script. Isnt it supposed to be:
var staticUrl = "{% static %}";
I am thinking there is an error with the quotation mark u used. Am i correct?
Yingi Kem
> On 18 Jul 2017, at 3:25 PM, Antonis Christofides
> wrote:
>
> Hi,
>
> Define staticUrl in the ba
Hi,
Define staticUrl in the base template, like this:
staticUrl = "{% static '' %}";
Then, inside d6.js:
var imageBank = staticUrl + 'Game/blank.gif';
(It is also good practice to use a single JavaScript global variable, like
app.staticUrl, in order to not pollute the global namespace, bu
I have a javascript file in my app static directory.
However inside my javascript file. I want to make use of an image. That is:
Javascript file is d6.js and it contains this code
var imageBank = baseUrl + "static/Game/blank.gif";
And then my html has this
{% load staticfiles %}
However whe
On Wed, Dec 26, 2012 at 6:06 AM, huw_at1 wrote:
> Thanks for the reply. I realised a few moments ago that I can use a
> relative STATIC_URL rather than an absolute one so now I just have
> '/static/' set as the value which works well.
>
> Many thanks
>
> RESOLVED
>
>
> On Wednesday, 26 December 2
Thanks for the reply. I realised a few moments ago that I can use a
relative STATIC_URL rather than an absolute one so now I just have
'/static/' set as the value which works well.
Many thanks
RESOLVED
On Wednesday, 26 December 2012 00:53:42 UTC, אברהם סרור wrote:
>
> Maybe you can just upload
Maybe you can just upload the files directly to the collect static folder
on the server
In any case maybe you want them under version control, so I guess you could
just automate all these steps with fabric
On Dec 26, 2012 1:00 AM, "huw_at1" wrote:
> Hi again,
>
> Another quick question. I'm stil
Hi again,
Another quick question. I'm still getting used to 1.4 and I've been setting
up a remote static file service for the production deployment of my web
app. This works just great however it seems a little cumbersome when
developing if I want to add fresh image content I have to add it to
Micah,
Here's a summary of how staticfiles works:
1. You place your static files, which are under version control, in
app/static folders, or any directory defined in STATICFILES_DIRS. This is
configurable, and works very similarly to how templates are placed in a
project. The important thing t
Regarding Django 1.4...
I recently came across a post that suggests that the way I'm managing
static files is "wrong". I wanted to make sure I'm clear on things.
In development, static files are in the "static" folders both within apps
at the project level. STATIC_URL = '/static/'
When I deploy
Hi,
I have a django 1.3 based frontend and it serves all the static files from
Amazon S3. I am wishing to upgrade to Django 1.4. It seems that Django has
changed the way admin static files are rendered. I have the following
configuration:
settings.py: I have the app django.contrib.staticfiles in
I already found my mistake :)
I had this:
urlpatterns = patterns('lafora.forum.views',
# Uncomment the admin/doc line below and add
'django.contrib.admindocs'
# to INSTALLED_APPS to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Unco
try:
MEDIA_ROOT = 'C:\\Projects\\myproject\\static_media'
or
MEDIA_ROOT = 'C:\\Projects\\myproject\\static_media\\'
On Wed, Mar 18, 2009 at 3:22 PM, Gil Sousa wrote:
>
> Hi!
>
> First of all, I already saw (and tried) this:
> http://docs.djangoproject.com/en/dev/howto/static-files/
>
> I want
> First of all, I already saw (and tried)
> this:http://docs.djangoproject.com/en/dev/howto/static-files/
>
> I want to use static files on development mode, but this is starting
> to driving me mad, I am googling for almost 2 days and I didn't solve
> my problem yet.
>
> How can I use static fil
Hi!
First of all, I already saw (and tried) this:
http://docs.djangoproject.com/en/dev/howto/static-files/
I want to use static files on development mode, but this is starting
to driving me mad, I am googling for almost 2 days and I didn't solve
my problem yet.
How can I use static files on dev
16 matches
Mail list logo