Hi!
Jagdeep Singh Malhi wrote:
> please Discuss in detail ...
> I am not able to understand ,how i can use Django with mod_wsgi
> I am using ubuntu 10.04 (LTS)
> please help.
This article is titled "How to use Django with Apache and mod_wsgi":
http://docs.djangoproject.co
Hi!
Shawn Milochik wrote:
> Do any of you have an idea as to where the problem is? I've spent a long
> time changing just about every setting in IE to do with cookies,
> security, temp files, etc., disabling all the add-ons, deleting temp
> files, changing and customizing security zones, adding ou
On Saturday 05 June 2010 10:49:59 Jagdeep Singh Malhi wrote:
> please Discuss in detail ...
> I am not able to understand ,how i can use Django with mod_wsgi
>
no big deal - just follow the docs
--
Regards
Kenneth Gonsalves
Senior Associate
NRC-FOSS at AU-KBC
--
You received this mess
please Discuss in detail ...
I am not able to understand ,how i can use Django with mod_wsgi
I am using ubuntu 10.04 (LTS)
please help.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Hello,
I'm studying the Django page on aggregation
http://docs.djangoproject.com/en/dev/topics/db/aggregation/
In the section 'Joins and aggregates' there's an example of how to
create an annotation for each Store with book price ranges. But what
if I want to do the opposite, i.e. for each availabl
Hi,
I am trying to serve up an mp4 video from my django app. I've
generated the video
using a tool called Camtasia, and it creates a set of files for me
that all go in a single
directory. I've put these down in my site_media directory with a
directory structure like this:
site_media/img/help/
Yeah, this was from the copy paste. It is split_contents()[1],
otherwise the code wouldn't run at all ;)
--
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
Thanks Frank.
On Jun 3, 6:33 pm, Frank Wiles wrote:
> On Thu, Jun 3, 2010 at 9:56 AM, jeremy07 wrote:
> > Hi, I have a simple booking app where first form gets number of
> > travelers. Based on that number I need to generate another form with
> > number of rows equal to entered number of travele
On Fri, Jun 4, 2010 at 8:45 PM, aa56280 wrote:
>> How are you logging out? Are you sure you are calling
>> django.contrib.auth.logout() ?
>
> Yup, I'm calling django.contrib.auth.views.logout()
>
You better show some code now...
Cheers
Tom
--
You received this message because you are subscrib
Hi folks,
I have various models with File and Image fields. I want to keep the
filesystem storage clean, removing any orphaned file upon a new one
being uploaded. To date I've been overriding save() in each model,
which isn't terribly robust:
class MyModel
def save(self, **kwargs):
Hi Daniel,
Yes I know about admin actions but I would like to provide a select
option/modify button on every rows inside my admin display. Not just
at one place.
--RJ
On Wed, Jun 2, 2010 at 1:05 AM, Daniel Roseman wrote:
> On Jun 2, 7:56 am, rahul jain wrote:
>> Hi Django,
>>
>> I am not sure
Has anyone used the patch from this ticket #7623?
http://code.djangoproject.com/ticket/7623
Does it work well? Is there a better way?
I've got the same problem the submitter has except I was hoping to extend
the auth.User class so I'd still have all of the user methods available in
the new user t
> How are you logging out? Are you sure you are calling
> django.contrib.auth.logout() ?
Yup, I'm calling django.contrib.auth.views.logout()
--
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...@googl
Holy reading comprehension, Batman. Just saw you have DEBUG off,
ignore previous comment.
On Jun 4, 10:34 am, Кирилл Яковенко
wrote:
> I have tried this method, but it didn't give any results.
> I suspect that this is due to incorrect settings of the database or connect
> to it.
>
> 2010/6/4 Dj
Are you running with DEBUG on? I've noticed the same memory growth in
standalone scripts when in DEBUG mode.
It may be related to this:
http://docs.djangoproject.com/en/dev/ref/templates/api/#django-core-context-processors-debug
On Jun 4, 10:34 am, Кирилл Яковенко
wrote:
> I have tried this met
I wanted to second my thumbs up for oauth2. It's working for my site
as well.
I'm using http://github.com/simplegeo/python-oauth2 specifically
(though the official Twitter library page mentions that the "brosner
fork" should be the one to use, which is forked from the one I'm
using, and I haven't
People are more likely to have ideas if you give us your Apache
configuration stanzas, particularly the WSGIScriptAlias and, if used
your WSGIDaemonProcess and WSGIProcessGroup directives,
any directory stanzas you have for serving the media, admin-media,
and any other static content trees. All pr
Admin media is not being loaded.
-V-
http://twitter.com/venkasub
On Fri, Jun 4, 2010 at 11:59 PM, Vectar wrote:
> Hello all,
>
> New to Django, I have been through all the tutorials and verified
> things appeared to be working. I am running a windows server 2003
> license, with Apache 2.1.2 I
Hello all,
New to Django, I have been through all the tutorials and verified
things appeared to be working. I am running a windows server 2003
license, with Apache 2.1.2 I think It is 2 something anyhow. I have
Python 2.6 installed and I have The latest version available to me of
the mod_wsgi int
I've been having an infuriating problem. Less than 1% of our users, all on IE,
had this symptom:
1. They log in.
2. They are redirected to the main screen (logged in successfully).
3. They click any link or refresh, and they're redirected to the login page
because Django sees request.user as Ano
I don't know if you have other problems, but the following is invalid python:
val = token.split_contents()1
You may have meant:
val = token.split_contents()[1]
Which gets you the second element of the list returned by split_contents().
If you wanted the first element, change the 1
I have tried this method, but it didn't give any results.
I suspect that this is due to incorrect settings of the database or connect
to it.
2010/6/4 Dj Gilcrease
> On Fri, Jun 4, 2010 at 6:44 AM, yakovenko wrote:
> > import os
> > import sys
> > os.environ['DJANGO_SETTINGS_MODULE'] = 'md.setti
Hi all,
I've been trying to figure this out for hours and hours, but I simply
can't understand how to make it work.
Now, we have a very simple custom template tag. Let's say that we want
the template tag to take as a parameter a filtered variable. A very
simple implementation of my template tag i
That's exactly what I'm looking to do, but as I have never done it
before I am having trouble gaining the base of knowledge needed to
accomplish the task.
Your series of questions actually helps in that it offers a quick map
of the process for doing what it is I'd like to do.
Here is my first tho
On Fri, Jun 4, 2010 at 9:40 PM, Nick wrote:
> I have been playing with
> ElementTree and BeautifulSoup but there is just something I'm not
> getting.
>
What is the problem that you are facing? if your XML is well defined, then
parse it, extract the data, convert that into objects and good to go
I am working on a project that requires me to grab an XML feed and use
it to update entries in a DB that will also be updated by some people
doing data entry. I have the workflow for the data entry side all set
up but I'm having a hard time finding a resource that can help me
write some functions t
hi,
I have written my own error handler mddleware sending my own formatted mail
instead of
Djangos build in.
How do I now disable the default mail, as I now get 2 for every error.
looking into handle_uncaught_exception() of django.core.handlers.base I can not
find any usefull
var, that disables
I think I have basic internationalisation working for english and
french. I can switch languages and change the page's title
accordingly. However, if I visit:
/jsi18n/
I see the catalog definition and a few gettext related functions etc.
However, these are defaults and the translations in the cat
Bound/unbound shouldn't affect things. See the docs on the subject of
ModelMultipleChoiceFields:
http://docs.djangoproject.com/en/1.2/ref/forms/fields/#modelmultiplechoicefield
and have your queryset parameter point to a callable that performs
whatever filtering logic you require.
On Jun 4, 8:50
Hi,
I have three models as
class Category(models.Model):
name = models.CharField(max_length=128)
class SubCategory(models.Model):
category = models.ForeignKey(Category)
name = models.CharField(max_length = 400)
class Document(models.Model):
category = models.Fo
On Fri, Jun 4, 2010 at 7:54 AM, kanniga sivasubramanian <
kskanniga...@gmail.com> wrote:
> If not created:
>
Don't uppercase the I in if.
Karen
--
http://tracey.org/kmt/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
Thanks Scott,
I have one doubt though: I need a bound form to properly set the queryset.
Using your method I'd use an unbound form, am I wrong?
On Fri, Jun 4, 2010 at 14:33, Scott Gould wrote:
> Create a ModelForm for your model (A), set the queryset to what you
> want on the appropriate field (n
On Fri, Jun 4, 2010 at 6:44 AM, yakovenko wrote:
> import os
> import sys
> os.environ['DJANGO_SETTINGS_MODULE'] = 'md.settings'
> sys.path.append('/md/lib')
> from django.db import close_connection, reset_queries
> from md.mddata.models import Info
> def test():
> for i in Info.objects.all():
>
Hello guys,
I use django ORM in standalone daemon. And It sucks more and more
memory.
I have created small script for testing:
---
import os
import sys
os.environ['DJANGO_SETTINGS_MODULE'] = 'md.settings'
sys.path.append('/md/lib')
from django.db
Create a ModelForm for your model (A), set the queryset to what you
want on the appropriate field (n), and then register that ModelForm
for admin use in your admins.py.
Regards
Scott
On Jun 4, 6:14 am, Massimiliano della Rovere
wrote:
> When displayed in the Admin interfaces, I'd like to filter
hello Venkatraman sir,
I accept your suggestion. I will send only my questions
in body. Thankyou for your acknowledgement.
On Fri, Jun 4, 2010 at 5:36 PM, Venkatraman S wrote:
> Please do not send the email in teh subject line :)
>
> --
> You received this message because you are sub
hello Vinicius Mendes sir,
You are right. I had done the certain mistake only. I corrected
that. Thankyou for your acknowledgement.
On Fri, Jun 4, 2010 at 5:36 PM, Vinicius Mendes wrote:
> I guess it is because the 'I' is uppercase. Try all the line in lowercase.
> Atenciosamente,
> Vinic
I guess it is because the 'I' is uppercase. Try all the line in lowercase.
Atenciosamente,
Vinicius Mendes
Solucione Sistemas
vinic...@solucione.info
On Fri, Jun 4, 2010 at 8:54 AM, kanniga sivasubramanian <
kskanniga...@gmail.com> wrote:
> def bookmark_save_page(request):
> if request.method
Please do not send the email in teh subject line :)
--
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
django-users+unsubscr...@googl
Thank for your(Dj Gilcrease) answer sir. I got the correct answer for
the problem.
On Fri, Jun 4, 2010 at 5:28 PM, Dj Gilcrease wrote:
> syntax error is because of capitol 'I' in if
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To po
syntax error is because of capitol 'I' in if
--
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
django-users+unsubscr...@googlegroups
def bookmark_save_page(request):
if request.method == 'POST':
form = BookmarkSaveForm(request.POST)
if form.is_valid():
# Create or get link.
link, dummy = Link.objects.get_or_create(
url=form.cleaned_data['url']
)
# Create or get bookmark.
bookmark, c
no,
developing on macos, testing and production on debian
regards
Henrik
>reply to message:
>date: 03.06.2010 12:05:02
>from: "kirian"
>to: "Django users"
>subject: Re: utf8-problems
>
>just guessing.. are you developing on a windows machine and your
>encoding problems occure on a linux machi
Anyone who wants to work on this problem with me? We can probably
collaborate and release it over this weekend.
On Fri, Jun 4, 2010 at 3:16 AM, Brad Pitcher wrote:
> Some versions of flash have a bug that causes the entire browser to
> freeze while uploading. I am afflicted by the bug, running
Hi
i have one question i 'm new in django and on my appalication , i want
to put one security.
that means i want if one user it's connected to block anymore client who
want to connected with the same user at that time one the server.
Thanks
Sorry for my english
--
Nadae Ivar Badio
+2217730
When displayed in the Admin interfaces, I'd like to filter the values
of n, so that instances of N already linked to other instances of A
sharing the same instance of o are not shown:
so when you edit an instance of A (let's call it "a"), you see only
the instances of n in use by a and the unsed on
Hi!
Mike Dewhirst wrote:
> a) It's not the standard. I've looked around at subversion repository
> tutorials but can't seem to wrap my head around applying that to our
> software.
Why not the standard? Many large companies do it the same way as you do.
> b) Sometimes we need to change something
On Thu, Jun 3, 2010 at 9:06 PM, aa56280 wrote:
> Django's docs say: "When a user logs in, Django adds a row to the
> django_session database table. Django updates this row each time the
> session data changes. If the user logs out manually, Django deletes
> the row. But if the user does not log ou
Hi
I have around 30 models inheriting from one abstract model class and
the number may grow (there's a specific reason for this design
decision, involving making the database easy for people to make
reports from the data with other tools, namely ms access, and making
it easier to make changes to s
On Fri, Jun 4, 2010 at 10:15 AM, ChuanRen wrote:
> for example:
> keys=[item1,item2]
> obj={item1:1,item2:2}
>
> the template:
> {%for key in keys%}
> {{obj.key}}
> {%endfor%}
>
> In this example, the key in template will resolved to item1 and item2,
> I thought:
> {{obj.{{key
> will work,
for example:
keys=[item1,item2]
obj={item1:1,item2:2}
the template:
{%for key in keys%}
{{obj.key}}
{%endfor%}
In this example, the key in template will resolved to item1 and item2,
I thought:
{{obj.{{key
will work, but it output a error.
Any approach can solve this problem?
--
You rec
Ah I solved this now by realising I simply needed to cast the
RawQuerySet as a list.
On Jun 2, 7:52 am, huw_at1 wrote:
> Hi all,
>
> I'm trying to use Djangos new Raw feature to run a custom SQL and
> return back a list of objects. This works fine however I then want to
> paginate to present the
On Jun 4, 5:06 am, HARRY POTTRER wrote:
> I'm writing a forum app that I want to be reusable. All of my urls I
> have named. Some of them are named like "index" and "thread" which are
> generic and will likely collide with existing project's urls. I don't
> want to do something like name all my ur
53 matches
Mail list logo