Re: Seperate project in a subdirectory (Apache 2.2 & mod_python)

2008-07-15 Thread V
python's path handling already surprised me a couple of times. I hope these help cheers, V On Jul 15, 5:32 pm, "Chris H." <[EMAIL PROTECTED]> wrote: > On Jul 14, 8:23 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > What order are you includi

Re: how to use PythonAuthzHandler with django?

2008-07-15 Thread V
ound under http://www.djangoproject.com/documentation/install/ or http://www.djangoproject.com/documentation/apache_auth/ ? thanks for your help! V On Jul 15, 3:23 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > FWIW, authen/authz for Apache is much easier done in mod_wsgi. See: > >  http://

Re: ifequal with url pattern?

2008-07-19 Thread V
what about ifequal flatpage.url[:len('/products/')] '/products/' so you always check the beginning of the url V On Jul 18, 11:38 pm, Eliza <[EMAIL PROTECTED]> wrote: > Hi, > > I'm new to Django and am working on a template, and I have the feeling > I

Re: ViewDoesNotExist 'index' attribute in contrib.admin.views.main

2008-07-21 Thread V
x27;t need it at least, this is what I did, and now I understand pretty well what has happened :) V On Jul 21, 12:32 pm, "Florencio Cano" <[EMAIL PROTECTED]> wrote: > The problem is that in the last versions in the repository of Django > the Admin interface has ch

Re: QuerySets are scary!

2008-08-25 Thread V
thanks for the exhausting answer! I thought that something similar is going on under the hood, and just wanted to point it out to other ignorant people like myself. thanks once again! V On Aug 23, 12:27 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Sat, Aug 23, 2008

Re: HowTo: Django view as a class

2008-08-26 Thread V
Hi! Interesting solution. Another possibility if you would like to stick with a class is to simply define a __call__ method on the class. Of course, this doesn't have to do anything with RESTfulness. V On Aug 26, 3:07 am, zvoase <[EMAIL PROTECTED]> wrote: > Hey Django users

Re: Strategies for staying current with django development

2008-08-26 Thread V
eases are), but should we expect security updates in the tag? Or something like 1.0.1, etc? Could someone give us a pointer on this? V On Aug 26, 4:22 am, "Jay Parlar" <[EMAIL PROTECTED]> wrote: > Another good idea is to listen to the "This Week in Django" p

an easy was to overwrite the submit_row templatetag

2008-08-27 Thread V
simple way to do this? I've tried to create a custom submit_line.html under my templates/ admin/application/model directory, but (unlike for the "main" admin templates) this didn't work have a nice day! V --~--~-~--~~~---~--~~ You received this mes

Re: an easy was to overwrite the submit_row templatetag

2008-08-28 Thread V
in the {% load ... line, and I get a TemplateSyntaxError: 'eke_admin_modify' is not a valid tag library: Could not load template library from django.templatetags.eke_admin_modify, No module named eke_admin_modify but eke_admin_modify.py resides in app/templatetags is there anything I

Re: how to get {% url %} working with {% blocktrans %}?

2008-08-28 Thread V
thanks for the pointer, the discussion seems to be really interesting I'll try to give my opinion/patch as well once I come up with one :) V On Aug 25, 10:53 am, David Larlet <[EMAIL PROTECTED]> wrote: > Le 23 août 08 à 13:45, Viktor Nagy a écrit : > > > > &

Re: Generate admin files. Views and Templates with Django?

2008-08-29 Thread V
still valid and) useful information in the djangobook http://www.djangobook.com/en/1.0/chapter17/ V On Aug 28, 6:50 pm, "James Matthews" <[EMAIL PROTECTED]> wrote: > When you create a project you run a command (python manage.py startapp test) > that creates the directory and the

Re: adding javascript files to the admin's "list view"

2008-08-29 Thread V
I think a possibility would be to overwrite the admin template as described in http://www.djangobook.com/en/1.0/chapter17/ V On Aug 29, 3:35 pm, Dennis Schmidt <[EMAIL PROTECTED]> wrote: > Hello again, > > now I'm just wondering how I can add some custom js files to a mode

Re: how to display custom messages in admin site

2008-08-29 Thread V
, obj, post_url_continue='../%s/'): you should be able to get your custom message (and response handling). According to the code the same should hold for response_change V On Aug 29, 3:56 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Fri, Aug 29, 2008 at 9:47 AM

Re: What do you use as a build tool (like Ant or make)

2008-09-09 Thread V
Hi, there was a thread on the bazaar mailing list about continuous integration systems for bazaar, it's not just a build tool, and not django related, but it might worth a look: https://lists.ubuntu.com/archives/bazaar/2008q3/046352.html V On Sep 9, 10:23 am, Jarek Zgoda <[EMAIL P

attach an image to text in the admin

2008-09-11 Thread V
Hi, I've quickly put together a small app that allows you to attach already uploaded images to a text you are actually writing. Moreover, you can upload new images as well. For the moment it exclusively uses the markdown[1] syntax to insert the image. You can check it out at http://code.google.

Re: how to use never_cache?

2008-09-12 Thread V
;), initial=_('Image')) As you can see it's very basic. V On Sep 12, 4:26 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Fri, Sep 12, 2008 at 4:21 AM, Vikti <[EMAIL PROTECTED]> wrote: > > Hi! > > > I am trying to write a simple app on

Re: how to use never_cache?

2008-09-13 Thread V
o be sure. Perfect pointer Karen, with your help I was able to make it working properly. Thanks! V --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Translation of object.attribute in template

2008-10-01 Thread V
dev/topics/i18n/#lazy-translation and then you just define the possible options in your model with ugettext_lazy V On Sep 30, 10:06 pm, Gerard Petersen <[EMAIL PROTECTED]> wrote: > Carl, > > You can hold the brain on this one. I think I found out a solution. Probably > similar

Re: How do you unit test forms

2009-07-18 Thread V
properly. This is my first > Django project and I guess I don't always know enough of what I'm > asking about to ask a full question. > > Thanks for the input. Some time ago I wrote down my experience on testing, including testing forms: http://viktornagy.com/blog/2009/05

Re: How do you unit test forms

2009-07-18 Thread V
On Jul 18, 1:47 pm, Joshua Russo wrote: > On Sat, Jul 18, 2009 at 9:38 AM, V wrote: > > Some time ago I wrote down my experience on testing, including testing > > forms:http://viktornagy.com/blog/2009/05/24/what-test-django/ > > > moreover, I would recommend to che

Re: how add email field to user registration?

2009-07-18 Thread V
ions you might want to look at django-registration: http://bitbucket.org/ubernostrum/django-registration there you can specify your own registration form to ask for data, just read its docs V --~--~-~--~~~---~--~~ You received this message because you are subscribe

Re: weird ValueError

2009-07-20 Thread V
stupid error, thank you On Jul 20, 12:23 pm, Daniel Roseman wrote: > On Jul 20, 11:13 am, Viktor wrote: > > > my view calls > > > survey = get_object_or_404(models.Survey, {'pk': int(survey_id)}) > > > and gives a ValueError: need more than 1 value to unpack, the full > > traceback is athttp://

Re: combining valueslistqueryset with a simple list

2009-07-21 Thread V
> but expand seemingly can't handle this operation. > > I was trying MyValuesListQuerySet.insert, but it fails as well (This > > is I can understand though. :)) > > > could someone help me on the best way to combine a list with a > > valueslistqueryset, please? >

Re: Django remove value from field with attrs disabled="disabled"

2009-09-06 Thread V
instead of using disabled field, I wrote a "StaticField" it's value is supplied in the general clean method, for details see http://www.djangosnippets.org/snippets/1523/ I hope this might help. On Sep 5, 7:52 pm, eli wrote: > Hi, > > I have problem with Django Forms and field with set attrs to

Re: Django testing applications: using fixtures

2009-09-07 Thread V
do you load several fixtures in your unittest class? from the error message, my guess would be that you have two fixtures that contain the same model's data, and the model has a unique column you can dump data for a specific app only, thus you might avoid such problems bye, V On Sep 6, 7:

Re: What is the correct database format for storing a 2-dimensional table?

2009-09-10 Thread V
On Sep 10, 12:18 am, "W.P. McNeill" wrote: > I am writing a Django app to store and manipulate a 2-dimensional > table of data.  I don't think I'm trying to do anything particularly > difficult, but I'm new to both Django and relational databases, so I'm > getting confused by various design consi

Re: User profile creation forms

2009-09-10 Thread V
data as well django-registration might work with a formwizard as well, but I wasn't thinking much about this [1] bitbucket.org/ubernostrum/django-registration/ [2] bitbucket.org/ubernostrum/django-profiles/ cheers, V --~--~-~--~~~---~--~~ You received this message b

Re: how to use the generic_inline_formset_factory?

2009-09-10 Thread V
I've got it (I think): http://docs.djangoproject.com/en/dev/topics/forms/formsets/#using-more-than-one-formset-in-a-view On szept. 9, 18:49, Viktor wrote: > hi, > > how can I create a page similar to the admin pages in the sense of > having a ModelForm and a formset generated with > generic_inli

Re: Locales

2009-05-22 Thread V
my first guess would be to try locale/lang/LC_MESSAGES instead of locale/LANG/LC_MESSAGES I hope this helps! Have a nice day, V On May 21, 10:42 pm, "Gabriel ." wrote: > Hi all, > > I've generated and compiled the locales, under my app path, > locale/LANG/LC_MESS

Re: Locales

2009-05-23 Thread V
On May 22, 4:48 pm, Gabriel wrote: > Actually LANG is an example ;) > The real directory structure is: > > locale/fr/LC_MESSAGES > locale/es/LC_MESSAGES > locale/de/LC_MESSAGES > and so on > > Regards. I got that :) so you have already used lowercased LANG directory names? if so, I have no cl

Re: What, if any, Apache modules are required to implement Django authentication?

2009-05-24 Thread V
AFAIK there are thousands of ways to combine Apache+Django for authentication. Just to name a few: * no apache, just django: you can define custom authentication methods (or even Basic Auth) with django. See the docs [1] * apache handles authentication using django as the backend. See the docs [2

Re: multi-table inheritance and binding objects

2009-05-24 Thread V
thanks, it's the same problem On May 24, 5:56 pm, Alex Gaynor wrote: > On Sun, May 24, 2009 at 10:53 AM, Viktor wrote: > > > Hi, > > > I have two models, a parent and a child, and would like to extend an > > already existing parent to have the child attributes as well. I'm > > likely to miss so

Re: Using forms to display multi-column table for input

2009-05-25 Thread V
On May 25, 1:46 pm, vishy wrote: > Hi, > My requirement is to display a 2-column table (moves to be entered by > user for white and black of a chess game) with 10 rows for  input > (textbox).How can I use forms module to achieve this? Is it possible? > thanks I think the easiest way to do this w

Re: Help with some models inheritance and the use of default

2009-05-25 Thread V
t; > How can I set language of the to the language of its country's > language by default? > Thanks for reading why won't you use non-abstract inheritance? that way all your cities would inherit all the properties of the respective country instance, language including V --~--~--

Re: abstract model with save method

2009-05-25 Thread V
n depth exceeded I have tried many variants, like moving the save method to the child models without getting rid of the save method of the abstract model, and with deleting it totally. In the latter case there are no problems at all. In the former (when the abstract model has a ``super

Re: abstract model with save method

2009-05-25 Thread V
thanks, this was the problem V On May 25, 9:51 pm, Sam Chuparkoff wrote: > On Mon, 2009-05-25 at 09:42 -0700, Viktor wrote: > >         super(self.__class__, self).save(force_insert, force_update) > > This line at least is bad. You want: > >   super(AcceptedRol

Re: setting choices on choice field dynamically according to objects current state

2009-05-26 Thread V
On May 25, 1:27 pm, Simon Davies wrote: > I have a choices field called status in my model form which can be set > to a number of values, however the options available will be based on > its current state something like this, so it needs to refer to itself: > > class ContractForm(ModelForm): > >

Re: Validation with two fields

2009-05-27 Thread V
On May 27, 5:56 am, Diogo Baeder wrote: > Hi, > > I've got two fields, in a model object: "from_date" and "to_date". How > can I make the admin controller or model validate if the "from_date" > field has always a lower value than "to_date"? Both are > "django.db.models.DateField", but how can I c

Re: Logged-in user in prepopulated_fields

2009-05-27 Thread V
Thanks, > > Daniele you should simply pass a RequestContext object to your templates, if you haven't touched much the initial INSTALLED_APPS list, then your templates will contain a ``request`` variable, and request.user is the current user. V --~--~-~--~~~---

Re: "Conditional fields" in forms

2009-05-28 Thread V
extended form as the user advances. You should be able to do it even without saving the partial data by passing it as the initial value to the second form. Or you might be able to use the form wizard under django.contrib. Anyway, I would like to see what others have to say! :) have a nice day, V --

Re: Abstract model or ContentTypes?

2009-05-28 Thread V
each the related objects from there. As a basis you might like django-event-calendar[1] as well, but remember that it's more basic than you. (Though might be nice to "upgrade" according to your plans. :)) [1]: http://code.google.com/p/django-event-calendar V --~--~-~--~---

Re: ValidationError exception message not coming through

2009-05-28 Thread V
my guess is that the validation fails before reaching the clean_PDF_File method, that is it fails at the FileField's clean method. Perhaps, you haven't supplied a file. :) On May 28, 3:02 pm, Adam Stein wrote: > Running Django v1.0.2. > > I have a form with a file field.  The file needs to be in

Re: comma seperated lists

2009-05-29 Thread V
if you do this to get a comma separated list you might like https://launchpad.net/django-export-csv On May 29, 7:15 am, Brian May wrote: > On Thu, May 28, 2009 at 11:36:10PM -0500, Alex Gaynor wrote: > > Loops put some vary helpful variables in the context, so you can do > > something like: > >

Re: forms / confirmation

2009-05-30 Thread V
er. I think the best is to add this disclaimer as a form to be POSTed back. V On May 29, 4:53 pm, "eric.frederich" wrote: > I have some very simple views that act as forms because there is no > information to fill out.  I get all the information from the url and > the request object

Re: Temporary urls for tests

2009-05-31 Thread V
another possibility is to call the views from your test directly, a relevant snippet to construct a request objects is http://www.djangosnippets.org/snippets/963/ V On May 30, 3:43 pm, Ramiro Morales wrote: > 2009/5/30 Filip Gruszczyński : > > > > > I am building a libra

Re: extending django-registration ( MixIn ModelForm and Form)

2009-06-01 Thread V
> I've also modified some django registration to use my Model instead of > User ( but shouldn't be the origin of the problem) > > any clue ? > > cheers >     Marco I don't have any clues on your problem, except that I can't really understand

Re: Newbie pls help with stored values

2009-06-03 Thread V
I'm not sure that I understood your problem, but form wizards might be what you are looking for http://docs.djangoproject.com/en/dev/ref/contrib/formtools/form-wizard/ I guess On Jun 3, 8:04 am, adelaide_mike wrote: > I am a newbie with Django and web stuff, but have long experience with > desk

Re: Managers to aggregate child object values?

2009-06-03 Thread V
rom what I see a Custom Manager would seem necessary but I'm getting > confused on related objects and aggregating items.  This is for Django > v 1.0 and would not include v1.1 aggregation features. > > Thanks in advance for any insight. This is just a wild guess, but I would try d

Re: How to delete a setting

2009-06-08 Thread V
you can run ./manage.py test yourapp with --settings=mysetting so, I would recommend to create a settings file with the given setting left out V On Jun 7, 1:51 pm, Julien Phalip wrote: > Hi, > > In a unit test, I'd like to test the behaviour of a middleware in the > absence

Re: how to override ordering in date-based generic views

2009-06-08 Thread V
[1]: http://docs.djangoproject.com/en/dev/ref/models/options/ V On Jun 7, 9:02 pm, josebrwn wrote: > Hi, > > I'm looking for a straightforward way to override the default ordering > of the date-based generic view, in order to allow > 'featured' entries to percolate to the to

Re: About extending user profile

2009-06-09 Thread V
On Jun 9, 3:11 am, ariest wrote: > Im developing a childcare app and I have a problem when I want to > relate an object of a table with a UserProfile field so for example: > > user:some_parent > > In a view, I want to see only the childs of that parent. > > In python manage.py shell: > > -Example

Re: How to access a form subfield? form design?

2009-06-16 Thread V
AFAIK you can't change your select box's options ordering. You should do it by changing MONTH_LIST directly. On Jun 15, 11:38 am, Bastien wrote: > Hi, > > I have a multi choice field to choose 1 or many months in checkboxes: > > in forms.py: > months_open = forms.MultipleChoiceField(choices = MO

Re: Editors of choice

2009-09-13 Thread V
After the hordes of happy Vim users around, I gave Vim another try. I've tried to set it up for Django around half an year ago, but finally gave up, and went back to heavy-lifting with Eclipse. Today, I got much further then before, so I'll post what I've found until now, and what I see as the ma

Re: How to make Form and ModelForm choise fields to pick first entry in queryset by default?

2009-09-14 Thread V
it's just a wild guess, but what about the initial property? http://docs.djangoproject.com/en/dev/ref/forms/fields/#initial On szept. 14, 16:36, Dmitry Gladkov wrote: > By default Django make select options like this: > - > admin > Testuser > > How to enforce Django to show it like this:

Re: inlineformset_factory and changing data set in form

2009-09-14 Thread V
On szept. 14, 16:18, dimitri pater - serpia wrote: > Hello, > > Suppose we have two models: > > CH_AUTH = ((u'J', u'John'),(u'P', u'Peter'),(u'M', u'Marc'),) > > class Publisher(models.Model): >     name = models.CharField(max_length=100) > > class Book(models.Model): >     publisher = models.For

Re: login_required redirects to a specific url

2009-09-27 Thread V
but that's a site wide setting, and I would like to have a different url for a specific view only V On Sep 27, 3:41 pm, "Сергей Зигачев" wrote: > Hello, > > http://docs.djangoproject.com/en/dev/ref/settings/#setting-LOGIN_URL > > As you can see, you need to im

Re: login_required redirects to a specific url

2009-09-28 Thread V
y, maybe you should use something like that: > > @login_required(redirect_field_name='redirect_to') > > Where `redirect_to' is the address for a specific page. > > -Original Message- > From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com]

Re: where does this caching come?

2008-05-15 Thread V
hanks for your help, at least I've learned something about mod_python. ;) V On May 15, 4:21 pm, "Norman Harman" <[EMAIL PROTECTED]> wrote: > Alex Morega wrote: > > On May 15, 2008, at 02:24 , David Zhou wrote: > >> Are you restarting the server between mod

Re: Adding database table to Selection Widget on newforms

2008-05-19 Thread V
I think what you would like is a choice field [1] populated with the elements coming from the django-countries model. Something like country = forms.ChoiceField(choices=models.Countries.objects.all().values('printable_name')) I hope this is correct and will help you. V

Re: IndexError instead of DoesNotExist with filter( )[0]

2008-05-30 Thread V
this was a really stupid mistake :) thanks for correcting me! V On May 30, 12:20 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On May 30, 11:08 am, "Viktor Nagy" <[EMAIL PROTECTED]> wrote: > > > IndexError: list index out of range > > > I've

Re: how does {% url %} work?

2008-07-11 Thread V
ill help someone as well! In the meantime I just realised that my problem was another row in the main urls.py: #(r'^$', include('coosci.main_app.urls')), --> this was the problem, so django docs was indeed correct except for the {% url %} syntax (r'^coosci/', inc

Using MPEG-7

2007-04-06 Thread V
Hi, Can any one tell me about Library for designing MPEG-7 based application in Python. Appologies for cross posting. Cheers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: Django Continuous Integration

2009-01-14 Thread Adam V.
> Revision Control: How do you layout your development repository? I'm > using Subversion for my setup but would be interested in hearing what > else others are using (Mercurial, Bazaar, Git, etc) We're using Subversion. We have one big repository, but we treat it like two top-level repository,

Re: Django book says MSSQL works with 1.0...?

2008-10-09 Thread Adam V.
I'm the django-mssql maintainer; please do post in bugs or weirdness you run into to http://code.google.com/p/django-mssql/ and I'll try to get the fixed. Thanks, -Adam V. (For what it's worth, at work we're using Apache + mod_python for our internal development; haven'

Re: Django book says MSSQL works with 1.0...?

2008-10-10 Thread Adam V.
> OT: I respect your position but, why you use mssql? Our IT systems at work are already Windows / SQL Server based, so it made sense to do our new web development against the same database. --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: : msiexec and Python 2.6.1 on Windows

2009-03-12 Thread Adam V.
There is a bug in Python 2.6.1 (introduced in that version, it wasn't there in 2.6) which is that the CRT manifests aren't set up correctly. This prevents, for instance, compiling and using mod_python 2.6.1 against Apache without giving httpd.exe a manifest file. http://bugs.python.org/issue4566

Re: Using pluralize with floats?

2009-06-23 Thread Adam V.
Float is an inexact numeric type, so this sort of thing gets problematic. For a "number of bathrooms" field, why not use a CharField with a limited set of choices or custom validation? On Jun 23, 12:19 pm, Peter Schroeder wrote: > Hello, > > Has anyone tried to use pluralize template tag with a

Re: Customzing form fields in Admin in list_editable mode?

2009-08-06 Thread Adam V.
Bug entered w/ patch: http://code.djangoproject.com/ticket/11651 On Jun 18, 1:24 pm, Alex Gaynor wrote: > On Thu, Jun 18, 2009 at 3:21 PM, Adam V. wrote: > > > Alex, thanks; that's what I was afraid of. > > If no one else has, I'd be willing to take a stab at a pa

Re: Pagination in the admin , where is?

2009-08-06 Thread Adam V.
ModelAdmin.list_per_page will let you control how many items appear on a particular admin list: http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_per_page On Aug 6, 7:50 pm, Asinox wrote: > Well, i cant find any about it, i want to know if the paginatio

Re: What's the most scalable Django deployment out there currently?

2009-03-24 Thread Adam V.
Curse (http://www.curse.com/) manages to stay up on WoW patch day, so that's a pretty good sign. --~--~-~--~~~---~--~~ 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

Customzing form fields in Admin in list_editable mode?

2009-06-18 Thread Adam V.
When enabling bulk edit mode for an Admin list view, is it possible to control the widgets used? For the normal editor you can of course specify a custom form, but I'm not seeing a way to customize the fields in the list view. Basically, I want to specify that some text fields fields in the list

Re: Customzing form fields in Admin in list_editable mode?

2009-06-18 Thread Adam V.
Alex, thanks; that's what I was afraid of. If no one else has, I'd be willing to take a stab at a patch for 1.2. On Jun 18, 12:40 pm, Alex Gaynor wrote: > On Thu, Jun 18, 2009 at 2:38 PM, Adam V. wrote: > > > When enabling bulk edit mode for an Admin list view, is it p

Re: Can I tell IE not to cache data?

2009-09-17 Thread Adam V.
This is via an AJAX request, I assume? For IE, you'll want to throw a bogus querystring on the end of the URL, to make it different, so that IE won't cache it: client side Javascript: url = whatever the url is normally. var sep = (-1 < url.indexOf("?")) ? "&" : "?" url = url + sep + "__=" + encod

Re: Cannot build psycopg2 in x86_64

2009-09-28 Thread Adam V.
If I remember correctly (and I might not be, and my 10.5 box is at work), the Python that comes with 10.5 does not have 64-bit support baked in, which basically means that extensions compiled against it won't either. You'll either need to build a custom Python w/ 64-bit support, or force the buil

Accessing context in templatetags

2010-07-09 Thread Miha V
Hi! Is there a way to access context from within templatetags? Specifically, we only load the templatetags and do the processing when the filters get registered, so we're not using the actual filters or tags {% someting %} in the templates. What we do is we replace some of the markup () with anot

Re: Accessing context in templatetags

2010-07-09 Thread Miha V
l', takes_context = True) > def show_news_sidebar(context): >   request = context['request'] >   news = getNewsrequest) >   return {'news': news} > > Was that your problem or did i just misunderstood you? > > -V-http://twitter.com/venkasu

Re: do we need MEDIA_ROOT and MEDIA_URL anymore?

2010-11-17 Thread Adam V.
On Nov 17, 2:07 am, MiratCanBayrak wrote: > Hi, > > I understood that in new version of django we are using > STATICFILES_ROOT and STATICFILES_URL instead OF MEDIA_ROOT and > MEDIA_URL. > > But when i look at settings.py i see both of them. When do we use > MEDIA? when do we use STATICFILES ? >

Re: mac No module named _md5 error

2010-11-18 Thread Adam V.
How did you install 2.6.6, and what does "which python" give you? -- 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+uns

Re: Django - Alternative to using NULLs? (for integer and FK fields).

2010-11-29 Thread Adam V.
A "phone number" is actually a character string, not an integer; so use CharField for these as well. For optional foreign keys, the standard (only?) database way to handle these is indeed with a NULL value. On Nov 29, 5:28 pm, Victor Hooi wrote: > Hi, > > I'm wondering what the community's stance

Re: Django with SQL Server

2008-03-25 Thread Adam V.
Not only is Django's pack-in MS Sql backend broken, but the last set of updates to adodbapi-2.1 to add IronPython support actually broke standard Win32/COM support in some areas. There are some now externally maintained SQL Server backends for (trunk) Django: * http://code.google.com/p/django-mss

Re: Django with SQL Server

2008-03-25 Thread Adam V.
> Should I go ahead and swap the backend code out for of these backends? The fact that I created a separate project basically speaks to my suggestion (swap out.) [I would kind of prefer if MS SQL support was dropped entirely from django-svn (unless the upcoming foundation is going to spend some

Re: microsoft sql server 2005

2008-05-19 Thread Adam V.
It's possible to use Django (trunk, best against 7540 or better to get the most recent security fixes) against SS2005 with the caveat that there is no core support for doing this. I'm maintaining an external database backend here: http://code.google.com/p/django-mssql/ That backend works well e

Re: connection.queries - show improper SQL?

2008-07-08 Thread Adam V.
>From the source for QuerySet.__str__: Returns the query as a string of SQL with the parameter values substituted in. Parameter values won't necessarily be quoted correctly, since that is done by the database interface at execution time. The __str__ method just does a naive Python % operation,

using geneirc views to delete more than one row

2007-11-27 Thread Sawan V
Hello, Is there any way to use the django.views.generic.create_update.update_object to update all the rows in a table? Example: my model contains a table with 2 columns, role and name. For a given row, role is constant and does not change but name can. I want to write one simple page where I

Re: using geneirc views to delete more than one row

2007-11-27 Thread Sawan V
Thank you for this, I had an idea that I could do this, was just wondering if there was a "generic view" way of doing it. Sawan On Nov 27, 9:19 pm, "Jonathan Buchanan" <[EMAIL PROTECTED]> wrote: > On Nov 27, 2007 3:07 AM, Sawan V <[EMAIL PROTECTED]> wrote:

newbie

2022-01-27 Thread Mico V.
hi all. is it easy to learn django...? -- 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...@googlegroups.com. To view this discussion on the

Bug with Watchman on Windows

2022-08-31 Thread David V
ase let me know what further steps I should take to make sure that watchman works out of the box like it is supposed to. Thanks, David V. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving ema

Re: memcached + fcgi prefork = wrong value for a given key

2012-08-13 Thread v-tuzov
пятница, 11 февраля 2011 г., 13:52:01 UTC+4 пользователь MarcMarc написал: > Hi, > > > > My problem looks like this: when using memcached with fcgi on prefork > > mode I`m getting wrong values for a given keys. Values are > > dictionaries with keys, so I`m logging those erros like this: > >

Re: Maintenance on djangoproject.com tomorrow

2013-02-06 Thread Sergei V
Hi, is it a smell of next RC in the air? :) regards, Sergei On Wednesday, February 6, 2013 8:43:38 PM UTC+2, Aymeric Augustin wrote: > > Hi folks, > > We've scheduled maintenance operations on djangoproject.com tomorrow, > starting at 09:00 UTC. > > The website and the docs may be temporarily

inicio en django

2014-07-26 Thread juantonio v
hola tengo el Django-1.6.5.tar.gz de django, ahora como lo instalo? gracias! -- 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...@googlegro

admin site not available after modifying base_site.html

2014-08-06 Thread juantonio v
No estás haciendo la referencia al archivo por el nombre. Renombrado tu archivo HTML a base.html -- 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+un

Django ChoiceField usage

2014-05-08 Thread sravani v
Hi, I am new to Django. I am trying to working out on the different fields in this. From that only I found there are model fields and form fields existed in it. Now I am working on radio buttons. For this what I have done is,created a model with field "title = models.CharField(max_length=3, ch

Re: Python Django Training

2020-03-02 Thread MS V
Please add me too On Mon, Mar 2, 2020 at 12:17 PM amanda wrote: > I am interesting learn > > 在 2020年2月1日星期六 UTC+1下午2:42:52,Srikanth K写道: >> >> Hi, >> >> I am from Hyderabad. I am Python Developer by Profession. I am eager take >> up any Python , Django Training (online Preferrable or Weekends).

Re: Stuck with Django on a Synology Diskstation

2020-03-05 Thread V. J
Zdravím vás, myslíme že přístup byl udělen jen pár lidem kteří odvádí dobrou práci, jelikož by bylo dost nebezpečné udělit přístup všem, tak pokud vas mohu poprosit obraťte se s žádostí na ně. A pokud uznaji za vhodné že je to potřeba, provedou opravu, nebo doplnění. Pokud se mýlím, tak mě kontaktu

contrib.auth.forms Bug

2020-06-29 Thread V O
Hello, Please have a look at the following: I was just about to subclass the login form of django.contrib.auth.forms: "class AuthenticationForm(forms.Form)" after dealing a bit with the code I was about to customize the user_is.active check in order to display a customized message at my login

Re:

2020-08-13 Thread Santosh V
Hi Rohini, You can check django docs for pagination and django filter for searching On Thu, Aug 13, 2020, 8:28 AM ROHINI PUNDE wrote: > Hi, > I want to do sorting, searching and paging in my crud operations,I am not > getting exactly what can I do easily with python and django.please give me >

Real-time audio processing with django-based app?

2020-08-24 Thread Rowan V
Hi all, I’m interested in building out an app with the following functionality. I would like to: 1) obtain audio data from a variety of users via a browser 2) undertake some analysis of the signal data in real time 3) Then create a composite stream of audio data based on transformations of the o

Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-29 Thread V. J
Věřte si 😉 Vašek. JOdesláno z mého telefonu Huawei Původní zpráva Od: RANGA BHARATH JINKA Datum: so 29. srp 2020 5:00Komu: django-users@googlegroups.comPředmět: Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered querysetHi,     There is a dj

A view drop down having values filtered from models

2015-08-28 Thread Thiliban V
Hie, I'm trying to do this. A view with Three drop down lists like - - The values in the list should be from model values. Or a separate things. I just want to capture the results and store the results in a db. so far I've messed up with this example http://www.w3.org/TR/xhtml1/DTD/xhtml1-st

Does anyone have good results connecting Django to Mysql on localhost and windows 7?, me not.

2016-01-25 Thread Gonzalo V
Wich module did you use? please help thanks!! -- 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...@googlegroups.com. To post to this group, s

  1   2   >