Hi
is possible to store a value of a field in a proxy model
I explain how models are
class Model1(models.Model):
title = models.Charfield(blabla)
class Model2(models.Model):
name = models.CharField(blabla)
fk_field = models.FK(Model1)
and then important thing
class ItemModel(Model1
@Eraldo: Thanks for the reply. I've read that part of the Django book, but
it does little to explain how Django itself works, because it uses WSGI not
CGI. After this excursion, I plan to see how Django handles connections and
such, so I'll be diving into the Django libraries.
Thanks for this, I a
@Russell: Thanks. That is what I wanted since WSGI is what most people use
these days. Thanks, I will have a look at that.
On 11 June 2013 04:59, Russell Keith-Magee wrote:
> Hi Nafiul,
>
> One place to start would be to read the WSGI specification. WSGI is the
> interface between your web serv
You might consider trying http://www.pairprogramwith.me/
-A
On Mon, Jun 10, 2013 at 2:13 PM, Feyzi Bagirov wrote:
> Trying to learn the platform and work on the project at the same time.
>
> Thanks, Feyzi
>
> --
> You received this message because you are subscribed to the Google Groups
> "Dja
> Trying to learn the platform and work on the project at the same time.
>
> Thanks, Feyzi
first of all, do the tutorial, don't try to go further until you're
somewhat comfortable with the concepts there. You'll get the feel of
the most basic and powerful django tools are: models, forms, and the
a
Trying to learn the platform and work on the project at the same time.
Thanks, Feyzi
--
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 django-users+unsubscr...@g
I think.. I found what you are looking
for: http://www.djangobook.com/en/2.0/chapter01.html
Under the heading "The MVC Design Pattern"..
there is a nice example of a simple CGI script using python (no django).
Greetings from Linz (Austria)
Eraldo
On Monday, June 10, 2013 4:10:51 PM UTC+2, Nafiul
Hi Nafiul,
One place to start would be to read the WSGI specification. WSGI is the
interface between your web server (say, Apache) and Python as a language.
The WSGI spec - also known as PEP 333 - gives a brief overview before it
gets into the fine details. However, one of the advantages of WSGI a
I'm having trouble wrapping my head around how to use generic class based
views properly when it comes to creating objects associated with already
created objects.
The concept here is adding File objects to a Case object.
The url pattern would be something like:
url(r'^case/(?P\d+)/add/$', Add
On 10/06/2013 05:10 μμ, Nafiul Islam wrote:
Hi!
I would be grateful to any link to a comprehensive resource, that
shows you how to make a simple Hello World webpage, from how you
install software that you need to writing pure python (without a
framework) that can handle requests, and work with
Hi,
This error message one gets in the following way:
>>> dict('a')
ValueError: dictionary update sequence element #0 has length 1; 2 is
required
I suspect that the second argument of your url is a keyword argument
rather than a positional one. In this case you should write:
{% 'path.
I created a simple decorator for this purpose:
http://djangosnippets.org/snippets/2874/
Wrap your expensive model methods with @auto_memoize and the results
will be cached in memory for the duration of the request.
_Nik
On 6/10/2013 9:58 AM, Kurtis wrote:
> I have two views which perform a ton
Hi,
I am not en expert but since I had a similar problem I found a solution.
I just attached data I wanted to persist to the request. You can put the
common code in a middleware to be computed early and then use it in your
views. You can also add it to the session data (i.e. request.session)
and
I have two views which perform a ton of DB queries. The views themselves
don't perform the queries; they simply call quite a few Model methods to
build the context data. I understand that I could simply build one method
to re-use the data but I'd like to sustain the "Object Oriented" quality of
Look very carefully at the urlpattern (in some urls.py) that corresponds to
this url tag. Perhaps something there isn't acted upon until you use the
reverse stuff.
If you don't see the issue, and want to chase it in pdb, make a dummy view
that calls django.core.urlresolvers.reverse() with these a
I'd take a look at the standard python docs, especially the things about
wsgi and httpserver, but this question is not django-specific so you might
have better look asking in a more python-specific forum, like
comp.lang.python (
https://groups.google.com/forum/?fromgroups#!forum/comp.lang.python )
Hi!
I've been using django for a little bit, and I gotta say I love the
framework. But here's the thing, I don't know how it works. How everything
fits together. So, what I wanted to ask is how does it all work? Say you
have a server, and you have Python installed on it. How would you go about
Hmm , don't know I'm not so much a js/jquery guy.
But here is something about this issue.
https://github.com/django/django/commit/5003df3659
I have subsequently located the problem. I think where the chartit.py
supplies a parameter saying use_decimal=true is wrong. I have removed
that paramet
Start with the Django installation guide and tutorial. They will show you
everything you need to know to get started.
https://docs.djangoproject.com/en/1.5/intro/install/
https://docs.djangoproject.com/en/1.5/intro/tutorial01/
On Mon, Jun 10, 2013 at 12:57 PM, Abhimanyu Choithramani <
life.abhi.
Le lundi 10 juin 2013 12:59:05 UTC+2, coded kid a écrit :
>
> what is the best way to implement this? Users will pay a certain fee
> and get some amount of points (100points) and for every video the user
> watch, like 30points will be deducted. How can I go about this? is
> there a package for
I have subsequently located the problem. I think where the chartit.py
supplies a parameter saying use_decimal=true is wrong. I have removed that
parameter and found that it works with that change.
Do you know if this is because of updates to jquery?
On Monday, June 10, 2013 12:38:02 PM UTC, to
I tried that on 1.5 and tried my code out in a 1.4 install. I get the same
error. Interestingly in stack overflow they mention this problem at
http://stackoverflow.com/questions/8644060/caught-typeerror-while-rendering-init-got-an-unexpected-keyword-argument
and chartit in its own code seems to
First of all; have you followed the python tutorial and a good grasp on
python in general? If not, do a quick read of the python docs before trying
to learn django.
You'll have to install django after downloading it. Unpack django, cd into
the new django-folder and do a
python setup.py install
T
Hi, Can't start it? Please be precise with what you mean it helps us help
you.
On Mon, Jun 10, 2013 at 5:57 AM, Abhimanyu Choithramani <
life.abhi.l...@gmail.com> wrote:
> I downloaded Python 2.7.5 and it started working.
> And I downloaded Django 1.5.1 BUT I am not being able to start it.
> C
I downloaded Python 2.7.5 and it started working.
And I downloaded Django 1.5.1 BUT I am not being able to start it.
Can someone please guide me step by step..
PLEASE please please..
Would be obliged if I also get a voice guidance over Skype.
my skype id is: abhimanyu.choithramani89
--
You rec
what is the best way to implement this? Users will pay a certain fee
and get some amount of points (100points) and for every video the user
watch, like 30points will be deducted. How can I go about this? is
there a package for point system in django?
--
You received this message because you are s
any suggestion please?
Il giorno venerdì 7 giugno 2013 19:13:50 UTC+2, kl4us ha scritto:
>
> Anyone know how to push changes upstream back to the template after
> having started the project? i'm in this snenario:
>
> 1) I start a project from pinax:
>
> $ virtualenv mysite
> $ source mysite/bin/a
It could be a problem with the simpleson.dumps options in django 1.5 vs.
the included simplejson. I remember there was something...
Change:
chartit/templatetags/chartit.py
- from django.utils import simplejson
+import simplejson
TypeError at /heating/chart/
__init__() got an unexpected key
TypeError at /heating/chart/
__init__() got an unexpected keyword argument 'use_decimal'
Request Method: GET
Request URL: http://127.0.0.1:8000/heating/chart/
Django Version: 1.5.1
Exception Type: TypeError
Exception Value:
__init__() got an unexpected keyword argument 'use_decimal'
Exception Loca
Hi
I am trying to get django-autocomplete-light (
https://github.com/yourlabs/django-autocomplete-light) working for my
project in the admin. I have the following files and code, running with
Django 1.4.3. In the edit form for the Company, the drop-down list for
country has been replaced by an e
Ok, thank you very much for your reply.
I will have a try later, and it should noticed in the doc maybe better. ;-)
—
Sent from Mailbox for iPhone
On Mon, Jun 10, 2013 at 4:40 PM, Tom Evans
wrote:
> On Sun, Jun 9, 2013 at 5:07 AM, XQ Kuang wrote:
>> Hi.
>>
>> The form of my app posted the ex
On Sun, Jun 9, 2013 at 5:07 AM, XQ Kuang wrote:
> Hi.
>
> The form of my app posted the expired_time with int timestamp just like
> 1371409201 and then converted it to datetime object.
>
>> expire_datetime =
>> datetime.fromtimestamp(profile_form.cleaned_data['expired_time'])
>>
>> request.session
I installed with python2.7/1.4.5 some weeks ago , but I didn't use a
BigIntegerField. What is your error message?
After trying this I find a problem with the types it can use. For
example it does not seem to like BigIntegerField unless there is
something else I am doing wrong. Thinking about
Le lundi 10 juin 2013 00:48:06 UTC+2, Pavel a écrit :
>
> i have some newbie questions ^^
Can you elaborate on yours needs ? They are several CMS in Django:
- djagnocms
- amstrongcms
- mezzanine
--
You received this message because you are subscribed to the Google Groups
"Django users" gr
34 matches
Mail list logo