first one name of the project second one name of the application. You
had executed both command
2012/6/27 Python_Junkie :
> When one creates a project with django-admin.py why is a second my site
> folder created?
>
> Mysite
> Mysite
> polls
>
> Thanks in advance.
>
> What is its function
When one creates a project with django-admin.py why is a second my site
folder created?
Mysite
Mysite
polls
Thanks in advance.
What is its function/value in this new version
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view thi
On Wed, Jun 27, 2012 at 9:56 AM, Kurtis Mullins
wrote:
> Actually, turns out I just had to read a bit more :) Sorry!
>
> So, the actual content of the Django Book is allowed to be freely
> re-distributed under the GNU Free Documentation License. The actual
> "Layout and design" remains under the c
Actually, turns out I just had to read a bit more :) Sorry!
So, the actual content of the Django Book is allowed to be freely
re-distributed under the GNU Free Documentation License. The actual
"Layout and design" remains under the control of the authors and
required written permission to reproduc
> We *will not* tolerate the use of official Django forums to support
> the illegal distribution of copyrighted work -- especially when you're
> violating the copyright of members of this community.
>
> The Django Book is available for free online [1]. However, the PDF is
> NOT freely distributable
On Tue, Jun 26, 2012 at 9:59 PM, alvaroalo wrote:
> I support the other users' opinion.
>
> - Try checking the Django tutorial from the very first step
> - You can also follow "The Definitive Guide to Django", which is 90% mainly
> based on the Django Tutorial
>
>
We *will not* tolerate the use
So I've created a Server model and whenever a server instance is created, a
group associated with that server is also created. So for server "Bender",
the group "Bender Admins" is created. Now, when a Request model instance
is created with Bender as its foreignkey, I automatically assign Bende
That worked like a charm! I read about the double underscore but didn't
think much about it when it crossed my mind. I've been grinding on this for
the whole day. My eyes... =)
On Tuesday, June 26, 2012 1:04:40 PM UTC-7, Kurtis wrote:
>
> I performed infobox = InfoDetail.objects.filter(title=in
I stumbled upon this while looking about this timing stuff:
http://www.html5rocks.com/en/tutorials/webperformance/basics/
Seemed slightly more verbose than W3C formal documentation.
On Tue, Jun 26, 2012 at 10:38 PM, Melvyn Sopacua wrote:
> On 26-6-2012 5:04, Andy McKay wrote:
> >> Now they want
>
> I performed infobox = InfoDetail.objects.filter(title=info_title), but it
> returns an error cus 'title' doesn't live in InfoDetail.
>
> How can i grab and filter it by title and pass {'infobox': infobox} in
> HttpResponse when HttpRequest is called?
>
If you want to filter by a certain title
On 26-6-2012 4:17, Sajja1260 wrote:
> hi all,
> i'm also facing the same problm... can any one help me
What problem?
Redirect after a get request? => document.replace().
--
Melvyn Sopacua
--
You received this message because you are subscribed to the Google Groups
"Django users" grou
On 26-6-2012 5:04, Andy McKay wrote:
>> Now they want me to add to that how long
>> the browser takes to render the page after it gets the data.
>
> You can use the navigation timing API:
>
> https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/NavigationTiming/Overview.html
Wow, really nice. Can't
On 26-6-2012 11:15, ledzgio wrote:
> Hi,
>
> I have a problemi with the admin page. In my admin page I have 3 fields
> that refers to the same table called Team: when I want to add a new Team by
> pressint the green "+" button, the popoup shows up and I can fill the form
> and adding a new Team
On Tue, Jun 26, 2012 at 11:40 AM, David Novakovic
wrote:
> Hey all,
>
> Is it possible to get a tuple of (sql, params) from an ORM queryset?
Yep:
sql, params = qs.query.get_compiler('default').as_sql()
(Fancy meeting you here. :))
--
You received this message because you are subscribed to the
Hey all,
Is it possible to get a tuple of (sql, params) from an ORM queryset?
I need to use the async postgres driver (txpostgres) on some backend code
and I'd like to use the ORM to generate SQL but actually run it through my
own connection.
I've had a look at queryset.query but from what I c
I'm trying to pass a objects.filter dictionary to HttpResponse. The problem
is I have 2 models: InfoBox and InfoDetail. InfoDetail is linked to InfoBox
by models.ForeignKey(InfoBox). What I want to do is filter by title which
lives in the InfoBox model. I performed infobox =
InfoDetail.objects.
El 26/06/12 10:13, Adrian Bool escribió:
On 26 Jun 2012, at 15:53, Sithembewena Lloyd Dube wrote:
Would anyone have tips on how to generate random 4-digit alphanumeric
codes in python? Also, how does one calculate the number of possible
combinations?
mm... if I undertand you, maybe this cou
Hi,
I am bit confused about what exactly do these urls imply in the url.py
urlpatterns = patterns('',
(r'^(?:index/?)?$', 'geonode.views.index'),
(r'^(?Phelp)/?$', 'geonode.views.static'),
(r'^developer/?$', 'geonode.views.developer'),
url(r'^lang\.js$', 'django.views.generic.simple.
thanks my friend...
On Tuesday, June 26, 2012 6:29:10 PM UTC+5:30, bruno desthuilliers wrote:
>
>
>
> On Tuesday, June 26, 2012 8:47:27 AM UTC+2, rick wrote:
>>
>> Reverse for 'add_record.views.search' with arguments '(> Student_login object>,)' and keyword arguments '{}' not found.
>>
>>
> Your
We do it all over our site. I use class-based views but you can checkout my
"MessageMixin". I have the code on this stackoverflow page:
http://stackoverflow.com/questions/5531258/example-of-django-class-based-deleteview/10903943#10903943
It will show up wherever you send the user to next, as long
Go with @JirkaV suggestion, also, you can add some jquery effect so that
the div appears then fades out on success or on error... its pretty simple
and really great!
On Tuesday, June 26, 2012 4:48:31 AM UTC-5, Lloyd Dube wrote:
>
> Hi everyone,
>
> I have a form on which I'm calling save() and i
How much you need to worry about differences in ROR or django infistructure
probably depends a lot on what your project entails. How much is it a job
that requires a framework? Django or ROR can be used for pretty common
generic web projects like a simple CMS system or it can be used for an
involve
On 26 Jun 2012, at 15:53, Sithembewena Lloyd Dube wrote:
> Would anyone have tips on how to generate random 4-digit alphanumeric codes
> in python? Also, how does one calculate the number of possible combinations?
For upper case, lower case and digits we have,
26 + 26 + 10 = 62
Hi,
Would anyone have tips on how to generate random 4-digit alphanumeric codes
in python? Also, how does one calculate the number of possible combinations?
Thanks in advance.
--
Regards,
Sithembewena Lloyd Dube
--
You received this message because you are subscribed to the Google Groups
"Dj
Hey Guys,
I've been working on a pretty big Django project for a while now. Between
everything we've covered so far -- I've got some pretty good experience in.
Particularly with using a range of techniques and overcoming many different
obstacles. I find myself reading the Django source code almost
>
> The case we're trying to make is -- why do that? Just like Raitucarp said,
> using an absolute path provides the same end-result as including the
> hostname and protocol. There's only a few cases where you'd want to do that
>
Whoops, sorry Raitucarp. I meant Melvyn :)
--
You received this me
We understand the issue. You want to display absolute URL including the
hostname and protocol in your templates. That's not difficult to do, you
just need to write a custom template tag to do this. There's many ways to
go about doing this -- however, if you're only running a single web-site on
this
You can't clear the browser's cache using Javascript.
On Tue, Jun 26, 2012 at 9:58 AM, Javier Guerra Giraldez
wrote:
> On Mon, Jun 25, 2012 at 9:17 PM, Sajja1260
> wrote:
> > On Friday, 28 November 2008 14:35:48 UTC+5:30, jai_python wrote:
> >>
> >> Any possible to clear browser cache alone usin
I support the other users' opinion.
- Try checking the Django tutorial from the very first step
- You can also follow "The Definitive Guide to Django", which is 90% mainly
based on the Django Tutorial
http://www.puyb.net/download/djangobook/res.pdf
On Friday, June 22, 2012 1:52:52 AM UTC+2, J
If you are doing the work yourself, use whichever you prefer. If you are
paying someone else to do the work, give them the freedom to choose what to
use. Just find someone who can complete the task at hand within your budget
and the toolset really shouldn't matter -- as long as they're not doing it
I am creating Selenium tests for my App.
I can create a new user, but I can't seem to figure out how to have it
deleted from the database.
After the tests run successfully the first time, subsequent tests fail
because the username already exists.
**Why am I not able to query the newly created r
On Mon, Jun 25, 2012 at 9:17 PM, Sajja1260 wrote:
> On Friday, 28 November 2008 14:35:48 UTC+5:30, jai_python wrote:
>>
>> Any possible to clear browser cache alone using javascript? it ill
>> help to solve this back button problem.
cache and history are two different things.
--
Javier
--
You
On Monday, June 25, 2012 7:49:01 AM UTC+2, totechess wrote:
>
> Tengo el siguiente problema. Con la última actualización de django 1.5
> supongamos estoy en un directorio x y al hacer django-admin
> startproject miProyecto me genera la carpeta miProyecto con la
> siguiente estructura
>
> mana
On Mon, Jun 25, 2012 at 9:04 PM, Andy McKay wrote:
>> Now they want me to add to that how long
>> the browser takes to render the page after it gets the data.
>
> You can use the navigation timing API:
>
> https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/NavigationTiming/Overview.html
>
> We use
On Mon, Jun 25, 2012 at 6:56 AM, Melvyn Sopacua wrote:
> On 25-6-2012 14:00, Larry Martell wrote:
>> On Mon, Jun 25, 2012 at 5:56 AM, bruno desthuilliers
>> wrote:
>>> On Monday, June 25, 2012 1:34:08 PM UTC+2, larry@gmail.com wrote:
Now they want me to add to that how long
th
Hi ,
i think depend on where you search it.
if you search djangoers in here..you find plenty of it.
if you search ROR in their mailing list, there are plenty of it too..
i think the important think is you know about the engine you want to use..
in today world, developer works from remote is n
Désolé, je ne parle pas espagnol...
On Monday, June 25, 2012 7:49:01 AM UTC+2, totechess wrote:
>
> Tengo el siguiente problema. Con la última actualización de django 1.5
> supongamos estoy en un directorio x y al hacer django-admin
> startproject miProyecto me genera la carpeta miProyecto con l
On Tuesday, June 26, 2012 8:47:27 AM UTC+2, rick wrote:
>
> Reverse for 'add_record.views.search' with arguments '( Student_login object>,)' and keyword arguments '{}' not found.
>
>
Your problem is with reverse url resolving, not with "searching the
database".
--
You received this message
>> @Jirka - thanks. I saw something about the messaging framework and even
>> tried one example which did not work.
Using the messaging framework is actually very simple.
You need to enable the messaging framework (see the steps here:
https://docs.djangoproject.com/en/1.4/ref/contrib/messages/ )
I did do:
#if form.save():
success = form.errors['success']
On Tue, Jun 26, 2012 at 2:35 PM, Sithembewena Lloyd Dube
wrote:
> @newkedison, thank you for the suggestion. I wish to stay on the page
> without doing any redirects.
>
> @Jirka - thanks. I saw something about the messaging framework
@newkedison, thank you for the suggestion. I wish to stay on the page
without doing any redirects.
@Jirka - thanks. I saw something about the messaging framework and even
tried one example which did not work.
I ended up doing the following (which worked):
In view:
success = default value here
Hi,
have you checked the messaging framework in Django?
HTH
Jirka
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
djang
On 2012-06-26, at 13:59 , armagan wrote:
> Hi,
>
> I'm trying to write the month name from number. I have done. But month's
> name is English. I want to change the name to Turkish.
>
> *In [35]: m = calendar.month_name[3]*
>
> *In [36]: m*
>
> *Out[36]: 'March'*
>
> Can you help me?
That's
On Tue, 2012-06-26 at 04:59 -0700, armagan wrote:
> I'm trying to write the month name from number. I have done. But
> month's
> name is English. I want to change the name to Turkish.
this may help you:
https://docs.djangoproject.com/en/dev/topics/i18n/
--
regards
Kenneth Gonsalves
--
You rec
Hi,
I'm trying to write the month name from number. I have done. But month's
name is English. I want to change the name to Turkish.
*In [35]: m = calendar.month_name[3]*
*In [36]: m*
*Out[36]: 'March'*
Can you help me?
--
You received this message because you are subscribed to the Google Gr
I'm trying to use the soaplib 2.0 web service snippet example and
continue to receive a 405 method not allowed error when trying to
access the method. I coded the example as is, with the views.py and
urls.py exactly as shown. I'm new to web services, so I know i've
missed something, but I cannot
*Hello everybody,*
*
*
*I would like to ask you how to solve an issue that is actually driving me
crazy. I have found several threads and workarounds of people who seem to
have faced a similar problem, but I havent actually found a valid solution
to my problem. Here it is:*
*
*
*1. I have severa
you may use HttpResponseRedirect to redirect to another page to display the
successful message
On 26 June 2012 17:48, Sithembewena Lloyd Dube wrote:
> Hi everyone,
>
> I have a form on which I'm calling save() and if it is successful I would
> like to display 'your post has been saved' or simila
Reverse for 'add_record.views.search' with arguments '(,)' and keyword arguments '{}' not found.
--
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/-/_HT0ni6iu
Hi all
I'm glad to announce the dates for Django & Pyramid Con JP 2012.
The conference will be held in Tokyo, Japan from September 15th(Sat) to
16th(Sun) 2012
at Advanced Institute of Industrial Technology (http://aiit.ac.jp/english/).
The conference will be held next to PyConJP 2012
(http://20
Hi everyone,
I have a form on which I'm calling save() and if it is successful I would
like to display 'your post has been saved' or similar in the template. How
would one go about that in Django 1.4?
I am sifting through the docs and cannot seem to find a definitive answer.
Thanks in advance.
Hi,
I have a problemi with the admin page. In my admin page I have 3 fields
that refers to the same table called Team: when I want to add a new Team by
pressint the green "+" button, the popoup shows up and I can fill the form
and adding a new Team. When I click save, the pop up disappears and
On Mon, 2012-06-25 at 05:01 -0700, bruno desthuilliers wrote:
> > How can I extract data from DB so that I can take that data n send
> it to
> > templates to display graphs according to DataBase values .
> > How can I write view function for that?
> >
>
>
> Everything you need to know is here :
> Is this an actual issue? You realize that there's no difference between
> /doc/ and http://example.com/doc/ if the current server is
> http://example.com/?
>
> See here:
> https://docs.djangoproject.com/en/1.4/ref/templates/builtins/#url
>
No no, that's not my issue. {% url %} template ta
Ok when i render {{formset}} in the template everything works fine. When i
render the form fields seperately, the first field of the "dishes form" is
missing. This wont be hard to figure out further. Thanks for all the help!
Rob
--
You received this message because you are subscribed to the Go
55 matches
Mail list logo