On Thursday, 27 October 2011 10:13:56 UTC+1, sakthi wrote:
>
> Ok. I installed mod_wsgi and did all configrations.
>
> i created django.wsgi file in my app with all the entries and also
> added WSGIScriptAlias / /home/saki/gpc/apache/django.wsgi to the
> httpd.conf in apache.
>
> Still i am
On Tuesday, 25 October 2011 23:56:35 UTC+1, trubliphone wrote:
>
> I am just banging my head against the wall and making no progress with
> this issue.
>
> I am trying to create a view that nests forms of related models. I had
> thought that inlineformset_factory would do the trick, but I
On Monday, 24 October 2011 23:14:40 UTC+1, Jennifer Bell wrote:
>
> On my site, some user data is automatically filled in to a form if a
> user is logged in by accessing request.user in the view code.
>
> On deployment, it seems that if *any* user is logged in, forms
> requested via another
On Friday, 21 October 2011 11:39:47 UTC+1, Gagiel wrote:
>
> Hi everyone,
>
> I am designing a system that allows users to mess up a basic directory
> tree and save the modified tree after reordering, removing and adding
> nodes at any level. I don't get a clue how to express this object
>
On Monday, 17 October 2011 15:00:09 UTC+1, youpsla wrote:
>
> Hello Daniel
> thanks for your answer and sorry for my english. As you said, it could be a
> problem of translation !!! :-)
>
> I really appreciate your help, I'm doing lots of progress in my python
> object programming curve ...
>
>
On Monday, 17 October 2011 20:30:35 UTC+1, Jefferson Heard wrote:
>
> class FarmersMarket(ModelForm):
>class Meta:
> model = models.FarmersMarket
> exclude = ('location',)
>
>def clean(self):
> place, (lat, lng) = _g.geocode(self.cleaned_data['address'])
>
On Monday, 17 October 2011 20:28:47 UTC+1, eyscooby wrote:
>
> Ok, sorry I thought I was starting to understand it a little better,
> but now I think I took a step backwards, so if it is ok with you let's
> step back and take it a step at a time.
>
> So, my first step is wondering if I really
On Monday, 17 October 2011 12:18:00 UTC+1, youpsla wrote:
>
> hello again, sorry for eventually annoying. But later in the Django
> tutorial,
>
> there is this code:
>
> from django.conf.urls import patterns, include, url
> .
> urlpatterns = patterns('',
On Monday, 17 October 2011 12:04:41 UTC+1, youpsla wrote:
>
> Thanks you 2 for your answers.
>
> I think I've understood now. Again I apologize for the newby Python
> question but I've read three times "Dive in Python" and it hasn't made
> me thnigs clear. That's the reason why I've posted.
>
On Sunday, 16 October 2011 23:43:56 UTC+1, youpsla wrote:
>
> Hello,
> I'm new to Django and I've only a medium background in funtionnal
> programming in Python.
>
> I'm currently reading and working on the Django tutorial. I've few
> questions on a example of code because things are not so
On Saturday, 15 October 2011 15:12:17 UTC+1, Piotr Hosowicz wrote:
>
> Hello,
>
> I still do not understand how things are connected in Django. In
> models.py I have:
>
> class CampaignManager(models.Manager):
> pass
>
> class CampPeople(models.Model):
> person =
On Friday, 14 October 2011 12:44:45 UTC+1, Guy Nesher wrote:
>
>
> Hi,
>
> I'm trying to populate a table with 2 foreign keys using a csv file
> and keep getting the following error :
> Cannot assign "238": "PrizetoRestaurant.RestauranttId" must be a
> "Restaurant" instance.
>
> I tried to
On Thursday, 13 October 2011 23:58:00 UTC+1, Victor Hooi wrote:
>
> Hi,
>
> I have Django model and in one of the fields I need to store a regex string
> that I can later use.
>
> class Foo(models.Model):
> name = models.CharField(max_length=30, unique=True)
> regex_string =
On Thursday, 13 October 2011 16:36:21 UTC+1, Piotr Hosowicz wrote:
>
> I am writing my personal contact book and now want to make wish list
> for Christmas. I cannot get simplest template working, the template
> is:
>
> www.w3.org/TR/html4/loose.dtd">
>
>
>
> Kampanie
>
>
>
> {%
On Tuesday, 11 October 2011 17:55:07 UTC+1, ch3ka wrote:
>
> I have a problem with django.core.paginator.
>
> I have a Page object who's .object_list is [], but at the same time
> it's repr() states "Page 1 of 11".
>
> How is that even possible?
>
> Same with page 2, page 3 ,...
You'll have
On Tuesday, 11 October 2011 15:17:18 UTC+1, eyscooby wrote:
>
> slowly getting there thanks to your help.
> I am actually trying to accomplish this in the Admin interface, so I
> am not sure how to use the template tag {{ ticket.days_old }} in that
> situation.
>
> the other part I left off
On Monday, 10 October 2011 19:14:51 UTC+1, eyscooby wrote:
>
>
>
> On Oct 5, 3:11 am, Daniel Roseman <dan...@roseman.org.uk> wrote:
> > On Wednesday, 5 October 2011 01:27:54 UTC+1, eyscooby wrote:
> >
> > > new to django/python developement, can't get t
On Sunday, 9 October 2011 20:26:26 UTC+1, Kayode Odeyemi wrote:
>
> Hello,
>
> I'm creating a template tag that will will allow session variables stored
> as strings or
> dict in a view to be available in its template. The syntax is:
>
> {% session_value [view_name] [session_variable] [arg] %}
Aargh. Just aaargh. There are so many things wrong with this code I hardly
know where to start. Please, try reading some of the documentation,
especially the bit about the uses of `get` vs `filter`.
On Sunday, 9 October 2011 20:00:36 UTC+1, Kayode Odeyemi wrote:
>
> Hello,
>
> I'm using Django
On Friday, 7 October 2011 09:20:03 UTC+1, Kayode Odeyemi wrote:
>
> 2011/10/6 Yaşar Arabacı
>
>> maybe you should restart the server? And, do you include new urls in your
>> root url config?
>>
>> OK! I just found out that if you have urls.py in different packages and
>
On Thursday, 6 October 2011 13:00:11 UTC+1, gregory semah wrote:
>
> Sorry my mistake again...
>
> I mean when i write "Projet.objects.filter(fact!=None)" instead of
> "Projet.objects.filter(fact=None)"
>
> Thanks
>
>
You can't use != in filter, as it's a function call. You need to do
On Thursday, 6 October 2011 10:10:09 UTC+1, bino wrote:
>
> Dear All ..
>
> From the basic tutorial of "Polls",
> I add this lines to model.py
> START
> from django.db.models.signals import post_save
>
> def do_something(sender, **kwargs):
> print "==START==="
>
>
> On Wednesday, 5 October 2011 20:55:33 UTC+1, Chris Green wrote:
>
I'm an experienced programmer (started around 1971 or so!) and I've done
> lots of things over the years, much of my background is in Unix (Solaris).
> In the last few years I have done quite a lot of web related stuff.
>
> I'm
On Wednesday, 5 October 2011 15:44:23 UTC+1, Chris Green wrote:
>
> I want to create a simple data entry form on a web page that shows all
> the columns of a database across the page (there aren't many columns,
> they will fit!) and a number of rows down the page.
>
> I.e. I want a data entry form
On Wednesday, 5 October 2011 09:51:11 UTC+1, himabindu wrote:
>
> HI,
>
> I have an issue in django framework. I was trying to develop a
> progress bar for my application, where the progress depends on files
> retrieved from the cache. But iam not able to retrieve the files from
> the
On Wednesday, 5 October 2011 01:27:54 UTC+1, eyscooby wrote:
>
> new to django/python developement, can't get this one figured out.
>
> I have a model that has a couple DateFields (issued_date &
> completion_date), and I'm trying to return a value with the difference
> of the two on each
On Monday, 3 October 2011 14:42:36 UTC+1, Victor Hooi wrote:
>
> heya,
>
> I'm coding up a Django form which will let the user upload a CSV file, then
> create and save multiple Model instances for each row in the CSV file.
>
> At the moment, I'm trying to decide where to put the code that parses
On Monday, 3 October 2011 13:17:49 UTC+1, Victor Hooi wrote:
>
> heya,
>
> I was previously using the following to render a form:
>
> from django.shortcuts import render_to_response, RequestContext
> ...
> def upload_file(request):
> ...
> return render_to_response('upload_form.html', {'form':
On Sunday, 2 October 2011 15:03:12 UTC+1, Swaroop Shankar wrote:
>
> Hi,
> I am trying to build a menu system which can be controlled at the admin
> area. For the content management purpose i am using django flatpage. So when
> a page is getting saved i need to insert the page title and url in
On Friday, 30 September 2011 12:35:30 UTC+1, Kevin Renskers wrote:
> Hi all,
>
> I am a Senior Python/Django programmer from The Netherlands, and I am on a
> quest to move to the Arctic Circle. Right now my focus is on Reykjavik in
> Iceland and Tromsø in Norway. It's quite hard to find jobs in
On Thursday, 22 September 2011 21:53:45 UTC+1, John Shaver wrote:
>
> The only way I could find to do is with 'raise ValidationError'()' in
> the clean() function. However, trying to query my User model to see
> if that username is already take does not work from the clean()
> function.
>
Why
On Thursday, 22 September 2011 15:18:15 UTC+1, Kurtis wrote:
>
> Sorry, I guess I should've posted that as well :)
>
> import string
> class PasswordField(forms.CharField):
>
> # Setup the Field
> def __init__(self, *args, **kwargs):
> super(PasswordField,
On Wednesday, 21 September 2011 23:42:02 UTC+1, Kurtis wrote:
>
> Hey,
>
> I've created my own User Registration FormView. Everything seems to
> work great except the password is always saved as "!". I can change
> that with the "password changer" in the admin section of the site. I
> am
On Wednesday, 21 September 2011 19:25:08 UTC+1, vijaymohan wrote:
>
> i did't modify httpd.conf
> i just included the below line in /etc/httpd/conf.d/python.conf
>
> LoadModule python_module modules/mod_python.so
>
>
> SetHandler python-program
> PythonHandler
On Monday, 19 September 2011 10:53:18 UTC+1, David wrote:
>
> Hi Daniel
>
> Having installed Django debug toolbar it looks like select_related is
> only performing one level of relation finding as opposed to following
> relationships through to their conclusion.
For the third time:
On Monday, 19 September 2011 10:29:17 UTC+1, David wrote:
>
> Hi Daniel
>
> Re: (2.)
>
> company.purchase_set.all returns nothing in my template.
>
What happens when you try it in the shell?
Are you sure that you have any purchases for that company?
> This is my select_related line:
>
> a
On Monday, 19 September 2011 10:06:06 UTC+1, David wrote:
>
> Hello
>
> Can/does select_related traverse models in other installed apps? and
> if not, can it be?
>
> I have the following
>
> app1
> class company
> no FKs
>
> class person
> FK to company
>
> app2
> class purchase
> FK to
On Tuesday, 13 September 2011 12:40:59 UTC+1, David wrote:
>
> Hello
>
> This is my code so far from urls.py
>
> from django.views.generic import ListView, create_update
>
> url(r'^reportwriting/types/edit/(?P\d+)/?$',
> create_update.update_object(
> model=Type
> )),
Why would it be any different? You have the same relationship between
Publisher and Category as you do between Publisher and Source, so just do
the same thing again.
--
DR.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this
On Sunday, 11 September 2011 00:18:28 UTC+1, Kurtis wrote:
>
> Hey Guys,
>
> I have a very simple stub of a project. I'm trying to do something
> that should be very simple but isn't as easy as I hoped.
>
> I have a UserProfile class. This object is basically just an extension
> of the
On Sunday, 11 September 2011 08:23:16 UTC+1, Petey wrote:
>
> The more time I spend with django, the more problems pop up :)
>
> I dont fully understand how to access related fields between models. (FK or
> ManyToMany)
> Code:
> http://pastebin.com/qbciYqYw
>
> In code pasted below -
On Saturday, 10 September 2011 05:46:33 UTC+1, Danny wrote:
>
> Hi, I'm learning Django (albeit slowly) and I'm trying to set up a really
> simple database. I want to have Artists, Albums, and Tracks. I want to be
> able to navigate both ways in the db. So you should be able to go from
>
On Wednesday, 7 September 2011 07:49:00 UTC+1, Reikje wrote:
>
> Hi, I have a bunch of WebTest's which are using the reverse method
> from django.core.urlresolvers to resolve a URL which the test should
> call. Example:
>
> url = reverse('webapp_home')
> form = self.app.get(url).form
>
> Now
On Wednesday, 31 August 2011 11:26:36 UTC+2, vpetkov wrote:
>
> Hi all,
>
> In relation to my previous post (unanswered,
>
> http://groups.google.com/group/django-users/browse_thread/thread/aad6fc7e6ad71b4f)
>
>
> I would like to ask about the security implications of doing the
> following:
On Thursday, 25 August 2011 06:10:38 UTC+1, raj wrote:
>
> I'm trying to set a default form value in the template, and not in the
> forms.py file (because I'm trying to make the default value dynamic
> depending on something that javascript will return).
> So To test it, I have the following
On Monday, 22 August 2011 17:16:24 UTC+1, Julian Hodgson wrote:
>
> Hi there,
>
> I'm running a production linux django server using wsgi, and have found the
> following issue. Django version (1, 2, 5, 'final', 0).
>
> If I open a python shell I get:
>
> >>> from passion.cg.models import *
> >>>
On Monday, 22 August 2011 18:17:09 UTC+1, mcrk wrote:
>
> Hi everyone!
>
> I've created a simple middleware for mobile detection and when testing
> values in dev console I came up with some pretty strange behavior.
> Let's say, I have this simple middleware class:
>
> class
On Saturday, 20 August 2011 20:20:12 UTC+1, Joshua Russo wrote:
>
> I setup this patter in url.py
>
> url(r'^events/(?P\d{4})/(?P\d{2})/$', events,
> name="eventsMonth")
>
> in my template I have this tag
>
> {% url eventsMonth year=month.prev.year month=month.prev.month %}
>
> but I keep
On Friday, 19 August 2011 11:15:53 UTC+1, gdebure wrote:
>
> Hi Everyone,
>
> I've been discovering Django for a few weeks, and love it so far :)
> However I am facing an issue with a modelForm. As I couldn't find my
> answer through googling, I thought you might be able to help...
>
> ==
On Thursday, 18 August 2011 16:44:51 UTC+1, MikeKJ wrote:
>
>
> I have this old site that was originally pre magic and got ported up 0.96
> where it still is and now have to make some alterations, this is a clone
> site to do something different but the same BUT on getting to the
> subsubcategory
On Wednesday, 17 August 2011 19:00:13 UTC+1, Adam Zedan wrote:
>
> Hi it seems I cant access data from local static paths such as
> c:\\somefolder\somefile.gif in my templates when I enter the url
> the code for my template is simplified to something like this
>
>
>
>
>
>
On Tuesday, 16 August 2011 08:21:24 UTC+1, Mike Dewhirst wrote:
>
> When using save() in a model, what is the difference between ...
>
> save(self, force_insert=False, force_update=False) or
> save(self, force_insert=False, force_update=False, **kwargs)
> # whatever
> super(Xyz,
On Monday, 15 August 2011 15:27:44 UTC+1, Thorsten wrote:
>
> Hello,
>
> I am wondering if it is possible to do math on fields inside a query
> with using the django syntax for example like
>
> SELECT (buyout / quantity) as buyout_per_item
>
> Currently I am using raw queries, because i
I've answered your query there:
http://stackoverflow.com/questions/7009010/how-to-display-an-attribute-of-a-foreign-key-in-django-admin-page/7063318#7063318
--
DR.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the
This line:
form = AdminPostForm(initial=post)*
*
should be
form = AdminPostForm(instance=post)
--
DR.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
Your error has nothing to do with your form. There is an import problem in
your empireFront.views module which is preventing it from being imported.
Somewhere you are trying to import something called "User" from a place that
doesn't have any such class. It would help if you posted the imports
On Friday, 12 August 2011 02:13:13 UTC+1, Kevin Anthony wrote:
>
> i'm trying to interface a django json page with an android application.
> it seems most json applications written for android use
> www.somepage.com/json.php?this=that=anotherthing
>
> But that doesn't work with django,
>
> Has
On Thursday, 11 August 2011 09:35:43 UTC+1, Slafs wrote:
>
> Hi there!
>
> I'm having difficulties with the new class based RedirectView with
> query_string = True and some unicode string in QUERY_STRING.
> I made a sample of the error on bitbucket
>
>
On Thursday, 11 August 2011 09:26:17 UTC+1, Vyrphan wrote:
>
> Hi there folks,
>
> I'm trying to add raw tinyMCE support for my project. I don't want to
> use the django-tinymce app, as it introduces some features that I don't
> want to load in my project.
>
> I followed instructions from
>
On Thursday, 11 August 2011 09:20:41 UTC+1, Igor Nemilentsev wrote:
>
> Hello everyone.
>
> I try:
>
> content = urllib2.urlopen('http://localhost:8080/').read()
>
> from inside some Django view(function)
> and http://localhost:8080/ is same Django server.
>
> This command do not give me any
On Tuesday, 9 August 2011 12:09:08 UTC+1, vanderkerkoff wrote:
>
> Hello there
>
> I'm trying to make this as easy as possible, but it's pretty
> complicated.
>
> Here's my form
>
>
>
> As you can see I've hard coded the id of the event into this section
>
> data =
On Tuesday, 9 August 2011 09:48:22 UTC+1, Rodney Topor wrote:
>
> Great. Thank you. I missed one, and this somehow affected others.
> (Must try to understand what RequestContext really does one day.)
>
> RT
It just runs the context processors, which add various things to the context
-
On Tuesday, 9 August 2011 02:33:47 UTC+1, oops wrote:
>
> Hi,
>
> May be you miss understanted my meaning.
>
> I just want to get the current user object in a normal .py file out of
> views.
>
> And this file just offer some data according to different user.
>
> Do you have any methods to get
On Tuesday, 9 August 2011 08:24:20 UTC+1, Rodney Topor wrote:
>
> I tried using a style sheet served as a static file with the tutorial
> project. In settings.py, I defined STATIC_URL = /static/ and
> STATICFILES_DIRS = ('/path/to/project/static/',). Then I defined a
> base_html template with
On Monday, 8 August 2011 16:51:52 UTC+1, Josh wrote:
>
> I'm trying to create custom templatetags now, while learning Django. When
> an entry is displayed I want to list other entries with the same categories
> below the entry. I also wrote a templatetag (following the Practical Django
>
On Monday, 8 August 2011 13:06:51 UTC+1, Kayode Odeyemi wrote:
>
> That didn't help either. It still did not depict what I'm trying to do.
> Those filters are for retrieving values set by a user. However, I tried the
> code below which is to hard code the choices into the form field on
On Monday, 8 August 2011 11:08:29 UTC+1, oops wrote:
>
> Hi,
>
> I try to get a request object out of views.py, and could not get the
> reqeust object through "def demo(request)".
>
> Could you tell me how to get it??
>
> Or is there other ways to get the same goal.
>
> Thanks very much
>
>
They're not. You must have misread. You always need to save.
--
DR.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/X7Qgt1zv0z8J.
To post to this group,
On Tuesday, 2 August 2011 19:15:12 UTC+1, voss wrote:
>
> Hello all,
>
> I have a dynamic form as follows:
>
> class myForm(forms.Form):
> Question =
> forms.ModelMultipleChoiceField(queryset=Model.objects.none(),
> widget=forms.RadioSelect())
> def __init__(self, request, *args,
On Tuesday, 2 August 2011 20:14:09 UTC+1, webcomm wrote:
>
> I'm also getting "list index out of range" quite often. Here is a
> shell session showing the error in context: http://pastebin.com/FBE30SDK
I don't know about the 'has no attribute Model', since you don't show the
traceback for
The problem isn't in the code you've posted, but in how you instantiate the
form in your view. You need to actually pass in 'request' as a keyword
argument.
--
DR.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on
On Monday, 1 August 2011 12:43:23 UTC+1, Tom Evans wrote:
>
> On Mon, Aug 1, 2011 at 11:08 AM, Abhilash Inumella
> wrote:
> > Dear all,
> >
> > I have a class QuestionView which is derived from FormView class. Here
> > is the code snippet to explain my problem:
> >
> > class
On Monday, 1 August 2011 10:44:39 UTC+1, Showket Bhat wrote:
>
> Hi Everyone,
>
> while practicing for django i reached at a point where i want to call
> the next page on a clic. where i ve put an image.. how ever i
> dont know the syntex of tag neither i know any other way to cal
> my
On Wednesday, July 27, 2011 12:53:52 PM UTC+1, Josh wrote:
>
> I want to update only specific fields in a model and keep the old values in
> other fields. I've been working on this for a few days but I run out of
> possible solutions.As far as I can see from the documentation and internet
>
>
> On Tue, Jul 19, 2011 at 2:58 PM, Andre Terra wrote:
>
>> Hello, everyone
>>
>> Assume the following models (dpaste.com [1]):
>>
>> class Account(models.Model):
>> """
>> Account model for categorizing entries from each SAP import,
>> and eventually sorting,
On Thursday, July 21, 2011 4:00:55 AM UTC+1, ed wrote:
>
> I'm using the following javascript, so I can't check the HTML, can I?
> How would I go about debugging this?
>
> function bookmark_save() {
> var item = $(this).parent();
> var data = {
> url: item.find("#id_url").val(),
> title:
On Tuesday, 19 July 2011 04:49:00 UTC+1, Alex wrote:
>
> Hello all,
> I was on this list a few months ago, but was unable to get a
> django-friendly web host. I am now helping with a site on Bluehost,
> which does support django, and I am hoping to be given permission by
> the guy in charge to use
Op maandag 18 juli 2011 20:29:17 UTC+1 schreef kooliah het volgende:
>
> I need to render a nested queryset in a template, a classic father/son
> structure like
> publisher>dvds>renters,
>
>
>
in python code i can use this code:
>
> code
>
>
Op maandag 18 juli 2011 20:29:03 UTC+1 schreef Phil het volgende:
>
> Hi,
>
> I have an ubuntu server, django is fully installed and working,
> lighttpd is installed and working(works with standard html page), but
> I am not sure how to get them talking to each other?
>
> It is my first time
On Sunday, 17 July 2011 10:49:37 UTC+1, Petey wrote:
>
> Both helped.
>
> 3rd problem to go ;)
>
https://docs.djangoproject.com/en/1.3/ref/contrib/admin/ - see the third
bullet point.
--
DR.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
On Friday, July 15, 2011 4:38:08 PM UTC+1, Derick Felsman wrote:
>
> Well i can install apache and django just fine, but if I download the
> wsgi source and use the make command on the makefile generated from
> the configure script i ended up getting an error. upon some research
> i discovered
On Wednesday, 13 July 2011 17:36:44 UTC+1, Venkatraman.S. wrote:
>
> Except for the code, is there any good place to start with to better
> understand the django structure.
> As in, i am trying to figure out a way by which django can be much leaner,
> so that the actual footprint
> is much
What? URLs have nothing to do with file paths.
There is nothing wrong here at all. The tutorial got you to define some URLs
beginning with 'polls'. You have to go to one of those URLs. Going to the root
of the site won't work, because you haven't set up a URL for it.
--
DR.
--
You received
Op donderdag 30 juni 2011 22:10:08 UTC+1 schreef sony het volgende:
>
> Ok...this might work for the second option .
> How about getting a drop down box from a data base table column
>
For the third time: that is what automatically happens when you use a
ForeignKey field in a form. No
Op donderdag 30 juni 2011 21:42:57 UTC+1 schreef sony het volgende:
>
> I am sorry I think I posted one line wrong.
>
> class Report(models.Model):
> reportType = models.ForeignKey(ReportCategory)
> name = models.CharField(max_length=200)
> description = models.CharField(max_length=300)
>
>
On Thursday, 30 June 2011 18:51:54 UTC+1, sony wrote:
>
> I searched the same thing on net and got many answers but some how
> dint get working with any of them. Table: 1. Report :
> reportType(foreign key from ReportCategory), name, description 2.
> Report Category: name,description forms.py
Op donderdag 30 juni 2011 14:57:46 UTC+1 schreef Eiram het volgende:
>
> Greetings!!
>
> In the past few days I have been trying to learn about Django. I
> started doing the Tutorial 1. During the tutorial I'm getting a
> strange error. I was hoping if someone can help me to understand what
>
On Thursday, June 23, 2011 11:27:53 PM UTC+1, Satyajit Sarangi wrote:
>
> My models.py is this
>
> class PermiLayer(models.Model):
> user = models.ForeignKey(User)
> table = models.ForeignKey(ContentType)
> permi = models.IntegerField()
>
> My views.py is this
>
> perm.table =
>
On Wednesday, 22 June 2011 14:32:10 UTC+1, Wim Feijen wrote:
>
> Hello,
>
> At www.mkb-rotterdam.nl we use a template tag to display NewsItems in
> different formats on the homepage.
>
> However, when a new NewsItem is added, it does not appear at once.
>
> Might this have to do with the fact
On Tuesday, 21 June 2011 15:47:32 UTC+1, Jeff Blaine wrote:
>
> Okay, here's the problem.
>
> >>> f = dev._meta.get_field('distro')
> >>> f.value_from_object(dev)
> 2L
>
> value_from_object is defined as:
>
>
> def
On Tuesday, 21 June 2011 13:16:47 UTC+1, Satyajit Sarangi wrote:
>
> Lets say one template helps me in uploading a file . When I go to an app
> called permissions , directly from that template . I want to carry that file
> name with me , so that I can assign permissions to it .
>
>
You really
On Tuesday, 21 June 2011 12:17:26 UTC+1, Divkis wrote:
>
> Hi all,
> I am facing some really weird issue with csrf token handling
> in django 1.3. Until now I was using 1.2 and my views were working
> fine with ajax post requests by setting the X-CSRFToken. I upgraded to
> django1.3
On Tuesday, 21 June 2011 11:13:35 UTC+1, yomguy wrote:
>
> collections is a queryset coming from urls.py:
>
> all_collections = { 'queryset': MediaCollection.objects.enriched(), }
>
But what is 'enriched()'? Honestly, if you're using custom code to get
objects, and are having trouble in a view
On Tuesday, 21 June 2011 10:17:35 UTC+1, yomguy wrote:
>
> Hi !
>
> MySQL and SQLite3 seem to have different behaviour here :
>
> when I have {% if collections %} in a template, where collections is a
> queryset,
> using SQlite3 gives this exception :
>
> "Caught DatabaseError while rendering:
On Tuesday, 21 June 2011 01:53:23 UTC+1, Jeff Blaine wrote:
>
> I can't seem to figure out what is causing this: According to the
> following 2 models
> and the 'python manage.py shell' session shown after them, I am getting 2L
> as a
> return value from a certain call when I would expect
On Monday, June 20, 2011 6:12:15 PM UTC+1, Surgemcgee wrote:
>
> Hey Gang, I am hoping that a few here can point me in the right direction.
> I have a online game that posts data to a server. The server
> broadcasts the information
> back to all of the clients via another post to the clients IP
On Monday, June 20, 2011 6:07:59 PM UTC+1, Nan wrote:
>
> In most situations, my app, upon receiving an HTTP request, sends data
> to a third-party API, and returns an empty HttpResponse. I need to
> test that the correct data is sent to the third-party API based on
> internal application
On Saturday, 18 June 2011 18:31:24 UTC+1, Roy Smith wrote:
>
> I assume that User.username is constrained to be unique, but I don't
> actually see that stated anywhere. Is it? And, assuming it is, what
> happens when you call create_user() with a username that's already
> taken? Is all this
On Wednesday, 15 June 2011 22:25:24 UTC+1, Satyajit Sarangi wrote:
>
> his is my models.py
>
> from django.db import models
>
> class Sdr_Layer(models.Model): layer_name =
> models.CharField(max_length = 100)
> layer_attribute_name=models.CharField(max_length=100)
>
> # This is an
On Monday, June 13, 2011 4:52:37 PM UTC+1, Jeremiah Malina wrote:
>
> Daniel,
>
> reset_password_confirm is my own view method in views.py which I'm using
> because I have jinja2 as the template engine and it renders templates with a
> different method
>
> Jeremiah
Fine, but then you need to
501 - 600 of 2377 matches
Mail list logo