nse yet. Pip needs to pick up the fixed dangodblog as a
> dep where the app is hosted. It's all automated.
>
>
> On Mon, Jan 30, 2012 at 6:45 PM, Babatunde Akinyanmi
> <tundeba...@gmail.com> wrote:
>> Oh I see. I was reading djangodblog as django-dblog instead of
&
Oh I see. I was reading djangodblog as django-dblog instead of
django-db-log so I was thinking djangodblog was a directory you
created yourself.
As long as Paginator remains on that line there's no way to go
forward. If I was you, I'd try to go through the source and figure out
if Paginator
<makobu.mwambir...@gmail.com> wrote:
> It's trying to import it from django.contrib.admin.views.main
>
>
> On Mon, Jan 30, 2012 at 4:29 PM, Babatunde Akinyanmi
> <tundeba...@gmail.com>wrote:
>
>> Seems like the app depends on paginator. Why not install the paginator
>>
Seems like the app depends on paginator. Why not install the paginator app?
On 1/30/12, Timothy Makobu wrote:
> Hi all,
>
> I'm on Django 1.3
>
> I just now installed django-db-log via pip, but after adding it to
> installed_apps, I get this Exception:
>
> Traceback
I'm presently working on something very similar.
I created a model that holds a single question, its options and its answer.
I also created what I call QuestionForm which will draw the amount of
Question objects needed and then render them as a form. When the form is
submitted, the QueryDict is
I haven't really read your mail but after you added the imagefield to
your Category model did you drop the category table and then syncdb?
On 1/21/12, cha wrote:
> Hello I reading this tutorial
> https://pype.its.utexas.edu/docs/tutorial/unit6.html#answers
> it's work OK
Thanks. It worked. It seems my problem is with understand STATIC_URL setting
On 1/15/12, francescortiz wrote:
> You can place the static files in the public html directory via
> symlink if allowed or copying them, and have rewrite rules that
> redirect to your django
Are you sure you read this?:
https://docs.djangoproject.com/en/1.3/ref/contrib/staticfiles/
>From my own experience, storing my static files in '/static/' never
works so I always create a separate folder for my static files and add
the path to STATICFILES_DIRS in my settings.
On 1/1/12, Chirdeep
Its not a mysql problem but you really have to give a better
description of the problem so you can get quick and useful replies to
your question.
However:
Have you snycdb-ed?
Also, did you remove or add an attribute from a model class after
syncdb-ing? If you did, you have to manually drop the
a/transformation in python dictionaries to be rendered
> in the template
>
>
> On Dec 23, 4:48 pm, Sebastian Goll <sebastian.g...@gmx.de> wrote:
> > On Fri, 23 Dec 2011 20:16:11 +0100
> >
> > Babatunde Akinyanmi <tundeba...@gmail.com> wrote:
> > > I actually ha
X_X
I can't believe I didn't even think of that. Thanks maiyte
On 12/23/11, Nan <ringe...@gmail.com> wrote:
> Try Python's slicing syntax. [1]
>
> [1]
> https://docs.djangoproject.com/en/dev/topics/db/queries/#limiting-querysets
>
> On Dec 23, 2:16 pm, Babatunde Akinyan
Hello,
How can I get the ORM to do the equivalent of this sql query with the
result being a QuerySet:
SELECT * FROM table LIMIT expr.
I know I can use objects.raw() but I need to shuffle the results and
RawQuerySet objects do not have __len__() making it impossible to
random.shuffle.
I actually
Also, if you want to suggest new features for django, you will have to
do that in django-develop group otherwise you won't get the core
developers to see your suggestions.
Thanks
On 11/17/11, Babatunde Akinyanmi <tundeba...@gmail.com> wrote:
> -1
> If you need to limit the latest dat
-1
If you need to limit the latest date a user can input, do it while
cleaning your form
On 11/17/11, Michael Nacharov wrote:
> Hello Django Expets!
> In one of my Django app, users must fill some forms with Django
> DateField. Why this class does not contain field
Since you changed your changed your models, you will have to drop your
tables and syncdb all over again.
On 10/16/11, Piotr Hosowicz wrote:
> Hello,
>
> To remind: this is my models.py excerpt:
>
> class CampPeople(models.Model):
> person = models.ForeignKey(Person)
>
I guess I should apologize myself. To alter how managers return
objects the get_query_set method should be overloaded.
On 10/15/11, Daniel Roseman wrote:
> On Saturday, 15 October 2011 15:12:17 UTC+1, Piotr Hosowicz wrote:
>>
>> Hello,
>>
>> I still do not understand
Piotr,
You need to remove the custom manager from your code since you are not
making use of it.
You also need to read the custom manager documentation so you can
understand managers and how they work
On 10/15/11, Thomas Orozco wrote:
> Just don't assign anything to
Yes your context is correct but the problem is with what the context
does contain.
Managers return querysets but yours does not do anything or return
anything. It will be very clear to you if you go to the django in
built shell and do PersonPhones.objects.all(). You'll find out that it
contains
Hi Piotr,
The problem is with your custom managers. You defined PersonPhones
manager (and all your other managers) to do nothing and hooked it to
objects effectively confusing everything.
Ideaally you should have:
objects = models.Manager()
But in your case its:
objects = PersonPhonesManager()
Hi Piotr,
Models contain code for the ORM and what will be used to create tables
for your database. View is where you can process logic and data from
your models or database before output to the client. Models are not
directly linked to templates and templates get their context from the
view.
>From what Iankesh said initially, I think he is having problems using
ajax to load part of a page not ajax as a whole.
Iankesh, it is possible to load only a portion of a page with ajax.
On 10/13/11, Sells, Fred wrote:
>> On Wed, Oct 12, 2011 at 9:17 AM, lankesh87
With django, when a url is sent to the server, the work flow is that
urls.py is first run to check if an expression that matches the url
submitted is available in the pattern function. If available, it runs
the view function specified in the pattern. This just means that you
don't have to restart
When you want to access say screen.css, how do you put it in your template??
On 9/26/11, nara wrote:
> I am having trouble getting STATICFILES to work. I have read the docs,
> and followed the instructions, but I never get my css files to load.
> My current workaround is to put
What's in your add_to_cart view function?
On 9/21/11, Fabio Natali wrote:
> On 09/21/2011 07:57 AM, Andres Reyes wrote:
>> I believe that the best practice is to always use the {% url %} template
>> tag and not hardcoding your URL's
>
> That makes perfect sense. Thanks for
Your post showed the trailing url...anyway I agree with your
diagnosis. With my noob knowledge of django, django tries to add a
trailing slash to your url when you don't. I believe she does that by
adding the trailing slash to the url and then asking the server to
redirect to the url which is the
Correct me if I'm wrong but it seems your "method" function is
supposed to return the request method type(POST or GET) sent to the
view. If I'm correct then your syntax will always return GET. That's
because I think all the django middleware workings adjust the initial
arguments and the response
nto the virtualenv.
>
> Not sure what exactly was wrong before, but Babatunde's suggestion
> that I had mixed up code installed (some in system files, and also
> mixed Django1.3 and the dev release) seems like the best guess.
>
> Thanks for everyone's help ;)
> Nara
>
> On S
You could at least try to be more specific
On 9/13/11, re64 wrote:
> I am having trouble installing django. I cant seem to do it any
> suggestions
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to
Oops!
*i'll submit :D
On 9/13/11, Tundebabzy wrote:
> I'm submit this on Hacker News
>
> On Sep 13, 1:35 am, Mario Gudelj wrote:
>> This is awesome dude. I was looking for something like this since I moved
>> to
>> Ubuntu.
>>
>> On 13 September 2011
>
> Will repost here if I still see problems.
>
> Nara
>
> On Sep 10, 7:16 pm, Babatunde Akinyanmi <tundeba...@gmail.com> wrote:
>> Hi nara,
>> Please post the debug output you get when you try to view the admin
>> page from your browser.
>>
>>
com> wrote:
> thank you very much
> Babatunde Akinyanmi & petey
> Im merge the code and its work
>
> Mr Babatunde Akinyanmi
> acutely I need be comfortable with programming with python
> But I dont Know How to do that
> can you help me and give me the best way to
ve tried to reproduce the phenomenon and with the 'Pászkán
> Attila' as user it worked ! Why? - still it isn't clear.
>
> PA
>
> On Aug 26, 12:20 am, Babatunde Akinyanmi <tundeba...@gmail.com> wrote:
>> Cool. I'm really interested in finding out what went wrong. If you are
>>
Hi cha,
Programming in django is just programming in python. Views are just
normal python functions that are called from urls.py which contains
pattern which is also a function.
If you want both views in one file, do exactly that. You could cut and
paste the view in the second app and paste it in
7/dist-packages'
>> '/usr/lib/python2.7/dist-packages'
>> '/usr/lib/python2.7/dist-packages/PIL'
>> '/usr/lib/pymodules/python2.7/gtk-2.0'
>> '/usr/lib/python2.7/dist-packages/gst-0.10'
>> '/usr/lib/python2.7/dist-packages/gtk-2.0'
>> '/usr/lib/pymodules/p
The problem is very clear. Add a related_name argument to those fields
in your model. If you are not sure how to do this, search the
documentation for "related_name"
On 9/10/11, Danny Gale wrote:
> Hi, I'm learning Django (albeit slowly) and I'm trying to set up a really
Hi nara,
This error is normally thrown when the sites app is being used in a
django project. I think it can also occur if the sites tables in the
database is not properly created during django-admin startproject.
Someone else reported that he was able to solve the problem by using a
user name
I think the best way is to create a custom manager for the job (check
the documentation for details-managers). In the manager, do a query
that gets all the users with undone jobs by using the filter option
(also see the documentation - making queries). From the resulting
querydict you could count
Hi Prem,
You said your django is located in a folder named Django-1.0.4. That
is where your PYTHONPATH should be set to not Django-1.3. Since you
had multiple python installations, make sure that windows associates
.py files with Python 2.7 and not Python 3.
If it still doesn't work, you can try
whole procedure (building up an application
> according to the tutorial) and it worked fine!!! :-)
>
>
> So, seemingly the problem has been resolved! :-)
> (It would be interesting to find out why and how
> has influenced that unusual user name the functioning
> of my a
ttila <paszti...@gmail.com> wrote:
> Can you give more details?
>
>
>
> 2011/8/25 Babatunde Akinyanmi <tundeba...@gmail.com>
>
>> The error you stated normally happens when there are problems with the
>> django_site table created when you start a project.
&
The error you stated normally happens when there are problems with the
django_site table created when you start a project.
On 8/25/11, Babatunde Akinyanmi <tundeba...@gmail.com> wrote:
> Please say exactly what you did. It will be easier to help that way
>
> On 8/25/11, raj <na
Please say exactly what you did. It will be easier to help that way
On 8/25/11, raj wrote:
> In ur urls.py,
> Did u import admin, make it discoverable, and also uncomment the /
> admin/ url?
> Also, make sure that you syncdb by running python manage.py syncdb.
> Lemme know
You will need to save the A object first. What you can do is override
the save method for B model. In the function, check for which argument
in *args is an A object. When found, call the super method for A's
default save method then call the super method for B's default save
method. That should
201 - 243 of 243 matches
Mail list logo