Hi,
I adopt django-messages as one of my site's application. Does
anyone know how to add a new message prompt in base template? I mean
how I can get one application's data in base template. Does this make
sense?
Thanks in advance!
--
You received this message because you are subscribed
My users have a lot of information provided as json by django when
they log on my application. Instead of computing this json each time
someone logs in, i would like to cache it. I think about having it as
a string that I would simply copy to the response object.
However, some actions must make
Inline.
2009/12/6 sleepjunk :
> Thank you for the response. I don't believe I explained well enough
> exactly what I'm trying to do.
>
> I have table Video with a field vimeo_code. Each vimeo_code has its
> own XML file. The XML file I used in my views.py is just a random
>
Thank you for the response. I don't believe I explained well enough
exactly what I'm trying to do.
I have table Video with a field vimeo_code. Each vimeo_code has its
own XML file. The XML file I used in my views.py is just a random
video I saw on vimeo. I need to replace the vimeo_code so the
Sorry for repeating what you said Shawn, but for some reason your
reply wasn't showing up in my browser until after I had answered the
question for myself.
Thanks,
Ken
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send
On Dec 5, 6:54 pm, zweb wrote:
> What is the best way to show site down for maintenance page ?
If you are using mod_wsgi:
http://www.caktusgroup.com/blog/2009/05/25/seamlessly-switch-off-and-on-a-django-or-other-wsgi-site-for-upgrades/
--
You received this message
Never mind, got it. the forms package merely provides the interior of
the ; the markup, plus any submit buttons, are the
responsibility of the template (or other code).
Thanks,
Ken
On Dec 5, 8:55 pm, Ken wrote:
> I have the following form, which displays
See inline.
2009/12/6 sleepjunk :
> Hello :) I am working on a small video site that allows a user to add
> a video to the site by submitting a Vimeo.com or Youtube.com URL. I'm
> trying to display thumbnails without hosting them. For Vimeo videos I
> need to parse an XML
Ken,
You just put the submit buttons in the HTML form as you would normally.
The submit button isn't part of a Django Model or Form. It really
doesn't make sense there; there's no data there.
Shawn
On Dec 5, 2009, at 9:55 PM, Ken
wrote:
> I have the
The error is occurring here as you have mentioned -
rolestartdate = models.DateField(default = \
Project.objects.get
(pk=project.id).startdate)
You're right that Django creates an attribute named id for every model
without a primary key explicitly specified, but I
I have the following form, which displays nicely:
class BuySellForm(forms.Form):
symbol = forms.CharField()
shares = forms.CharField()
price = forms.CharField()
However, I can't figure out how to get multiple 'submit' buttons to
display (one 'buy' and the other 'sell'). Actually, I
I am using the code shown below. The part causing the problem is the
Role class which describes the role a person might have on a project.
As part of that role, I would have an attribute that records the start
and end date of the person's involvement. The problem seems to be
coming when I make
Hello :) I am working on a small video site that allows a user to add
a video to the site by submitting a Vimeo.com or Youtube.com URL. I'm
trying to display thumbnails without hosting them. For Vimeo videos I
need to parse an XML file to find the thumbnail location.
On my homepage I would like
Hello List,
I am having problems getting the forms within a modelformset to display
as I wish. I'm using
Django 1.1 with python 2.6.
The model class is:
class Availability(DefaultColumns):
"""Record analyst availability."""
date = django.db.models.ForeignKey(WorkShift)
analyst
Try this - http://code.google.com/p/django-maintenancemode/
-Chris
On Sat, Dec 5, 2009 at 6:54 PM, zweb wrote:
> What is the best way to show site down for maintenance page ?
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Django
Hi all,
I want to change below function to use the generic view function
update_object:
@login_required
def edit_bug_page(request, bug_id = None):
if bug_id == None:
bugInstance = Bug()
else:
bugInstance = get_object_or_404(Bug, pk = bug_id)
members =
What is the best way to show site down for maintenance page ?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
On Mon, Nov 30, 2009 at 1:41 PM, Daniel Howard wrote:
> Hello,
>
> I started development on an older version of Django, and the system
> Django was subsequently upgraded. The system is presently at 1.1.
>
> I am trying to migrate from sqlite to MySQL. I have tried a few
>
Turkan,
Perhaps this will help. I just have done this
(PostGIS/Eclipse/Pydev/Django on Ubuntu 9.10) and it's working great!
After having problems because I had installed Postgres 8.4, I found the
script below, on the net somewhere.
Modify, as appropriate, if you don't need GIS.
You may also
i use in my form
form = MatchForm(instance=match, initial={'startDate':'%s-%s-%s'%
(y,mo,d),'startTime':'%s:%s:%s'%(h,mi,s)})
but ur initial value is a list, initial=[bla bla]
instead of this use dict {}
On Dec 5, 11:35 pm, Liam wrote:
> Haven't been able to get
if u register EXPR tag in ur templatetag
for example ur templatetag file is mytags.py
in ur template load this as like {% load mytags %}
so
{% expr matchList.count() as i %}
i is {{i}}
{{matchList.i}}
i does not tried this but i think it will..
On Dec 5, 10:19 pm, workingbird
Hello.
I know ... this topic was discussed quite often. But all the hints I
found don't really help to setup Eclipse/Pydev under Ubuntu 9.10 for
Django 1.1 (from the official Ubuntu repositories).
I tried to follow this tutorial (http://solyaris.wordpress.com/
Haven't been able to get this to work, and no one has responded with
advice or a workaround.
Can anyone confirm that this is a bug, or tell me what I'm doing
wrong?
On Dec 3, 5:28 pm, Info Cascade wrote:
> Hi --
>
> I am trying to set some reasonable defaults
in built-in template tags, i just know to get item of array by
index,just like:
{{ my_array.2 }}
but if i want to get the last, how should i do? i've tried
{{ my_array.-1 }}, but it seems something wrong.
any help will be greatly appreciated.
--
You received this message because you are
On Dec 5, 4:14 pm, Robert wrote:
> Hi,
>
> I try to run an app that ran successfully on 0.96 but doesn't run on
> version 1.1.1.
>
> I have validated my models.py with the command python manage.py
> validate.
>
> It output a syntax error in this line:
>
> if not force_update and
I wrote this rather quickly. It allows you to put a template.showell
file in each app folder, and will render the templates on demand if
you call "render_showell_to_response(...)". It'll check the last
modification time of the .showell files, and re-renders them if
they've changed, allowing you
Hi all,
My first post to share an habit of mine that you might find useful: it
deals with views and wraps them into objects.
I have replaced the functions with objects for a while now, found it
very handy and add pieces of code here and there in my little home-
land, but never shared it. Which
Hi,
I try to run an app that ran successfully on 0.96 but doesn't run on
version 1.1.1.
I have validated my models.py with the command python manage.py
validate.
It output a syntax error in this line:
if not force_update and self.next_update and self.next_update >
datetime.datetime.now():
Not simply. The design of the tag to drop smaller time frames the
further out you are.
The source is all there for you to copy and modify into your own
custom filter, but that may be more than you want to bother with...
-Preston
On Dec 4, 3:22 pm, Continuation wrote:
On Dec 3, 12:02 pm, Wayne Koorts wrote:
> >> > remember that an app can do a lot more than provide views.
>
> >> Explain this one to me. AFAICS, its just http request/response all the
> >> way down and this is basically done by getting a
>
> > An app can expose views,
On Dec 4, 6:43 pm, jwpeddle wrote:
> Not having any luck with this. Surely there's a simple example out
> there somewhere of view agnostic DRY form logic.
The old thread you point to still makes sense.
A redirect can only happen in response to a request
a request is
I have some objects that needs to be paginated . I want to get all my pages
on my sitemap.
Is there any smart way to make items(self) returns all the pages for that
objects and not only the get_absoute_url without page= get variable?
--
Alessandro Ronchi
http://www.soasi.com
SOASI - Sviluppo
Hello,
2009/12/5 rhce.san :
> i set up django perfectly and added few apps and ran the syncdb , but
> still i am facing issue when i go the http://site/admin link.
>
> It logs in but doesn't provide the apps info there it provides just
> the blank page.
>
> Can any one please
i set up django perfectly and added few apps and ran the syncdb , but
still i am facing issue when i go the http://site/admin link.
It logs in but doesn't provide the apps info there it provides just
the blank page.
Can any one please help, please also cc to rhce@gmail.com when
ever you
34 matches
Mail list logo