Is DEBUG is set to True or False?
And can you open static files by paths that are present in page source? I.e.
by path which generated from (for exampe) {% static "js/jquery.min.js" %}?
> Hi @der_fenix,
>
> My STATIC_URL setting is as follows: STATIC_URL = '/stat
Is there you main static dir in STATIC_URL in settings.py?
> Update: removing the noscript tags around the css tags in the template
> solves the issue. I am no clientside scripting expert, but it is my
> understanding that noscript tags accommodate browsers with scripting turned
> off, or legacy
Quick way is create one model with fields, that equals all params. I.e. for
your example - field with welcome text, two fields with banners and 3 fields
for links. So you'll have one record in table with all needed parametrs.
Of course this way isn't acceptable if you'll have over hundred
For timestamp in int you should use time() from time package (not
datetime.time). It return float number, but can be easy convert to int.
> Hello,
>
> I'm new to Django, and I have a question.
> I have a ImageField() in my model, and I obviously want that each image has
> a unique name in my
Hello I have problem with render_to_string
django it's showme this error message :
'SafeText' object has no attribute 'status_code'
my view :
def html(request):
context = {'inf': Itype.objects.all()}
return render_to_string('smg/owl.html',context)
Views must return Response
{% if condition %}
some_function(params);
{% endif %}
Sarfraz ahmad wrote at 23 апреля 2013 13:30:38:
Guys, is it possible to call a javascript function in django templates based on
an if
condition...?? What i want to do is that in django
Just make like this:
times = time_stamp.objects.all().order_by('-time_stamp')\
.values('user_id','game_id')[0]
-- You received this message because you are subscribed to the Google Groups
"Django
users" group.To unsubscribe from this group and stop receiving emails from it,
send an
email to
7 matches
Mail list logo