can Django's views call on several programs to run at the same time?

2009-01-13 Thread Victor
f each of the applications as they finish. Is there a way to do this without using threading? Does Django even support this functionality? Thanks! -Victor --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&

[招聘]web程序员

2009-07-07 Thread victor
岗位要求: 1、肯干肯学 2、熟悉web编程基本知识,有编程基础 3、深刻掌握面向对象编程,有django开发经验 4、熟用mysql或postgresql数据库、linux、js、html、局域网管理 岗位职责: 1、网站、内部管理系统开发、维护 2、现有系统、局域网维护 3、其它安排的工作 杭州先临三维科技股份有限公司是一批来自计算机视觉数字图形、机械等专业领域的国内外著名科研机构和高校的专家、学者及专业人员组建的新型科技企业。依 托国内外数家著名科研机构的雄厚的科研实力与丰富的研究资源,专注于三维成像技术的研究、开发、应用,成为世界上少数几家能自主研发高分辨率、高性能和 低价格的三

Re: web程序员

2009-07-07 Thread victor
电子邮箱��...@shining-tech.com h...@shining3d.com 公司网站:http://www.shining3d.com --~--~-~--~~~---~--~~ 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.c

how to get LANGUAGE_CODE variable in flatpage's template

2009-08-28 Thread victor
i need get LANGUAGE_CODE variable in flatpage's template,but only got it under Debug status. when set debug=False,any request to flatpage will got 500 error: VariableDoesNotExist: Failed lookup for key [LANGUAGE_CODE] in u'[{}]' when set debug=True,all works. can anyone know how to get it in flatp

Re: how to get LANGUAGE_CODE variable in flatpage's template

2009-08-28 Thread victor
No one suffered? On 8月28日, 下午1时20分, victor wrote: > i need get LANGUAGE_CODE variable in flatpage's template,but only got > it under Debug status. > when set debug=False,any request to flatpage will got 500 error: > VariableDoesNotExist: Failed lookup for key [LANGUAGE_CODE]

can django add custom permission without module association?

2009-06-14 Thread victor
can django add custom permission without module association? if can,how to? thx a lot. --~--~-~--~~~---~--~~ 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@googlegro

Optimizing queries

2009-11-08 Thread Victor
Hi, I'm trying to optimize some queries I'm making, but I'm not sure how to do it. 61 for t in items: 62 try: 63 t.price = t.user_item_rel_set.get (user=u).payment_amount 64 except: 65 t.price = -1 * t.buyer

DJango

2009-11-18 Thread victor
also closed source / partially closed source) Do I have to specify that I've used Django? Or just put somewhere "NO GUARANTEE" statement? Regards, Victor. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

problem execute remote commands in views

2009-12-10 Thread victor
i need to execute remote commands through ssh in views,following is my code: @login_required def reposCheck(request): if request.method == 'POST': from commands import getoutput rs = getoutput('ssh t...@192.168.1.2 "[ -d /home/shing3d/ shin/ ] && echo 1 || echo 0"') retu

Re: problem execute remote commands in views

2009-12-10 Thread victor
Thu, Dec 10, 2009 at 9:36 AM, victor wrote: > > i need to execute remote commands through ssh in views,following is my > > code: > > @login_required > > def reposCheck(request): > >    if request.method == 'POST': > >        from commands import getoutpu

'ModelChoiceField' object has no attribute 'objects'

2010-04-20 Thread victor
i have a model and relative form as following: class contactTitleForm(forms.ModelForm): titleType = forms.ChoiceField(label=_('Title Type'), choices = contact_property_type.items(), widget=forms.Select(attrs={'class':'mustin {required:true}'})) contact = forms.ModelChoiceField(label=_('Cont

Re: 'ModelChoiceField' object has no attribute 'objects'

2010-04-20 Thread victor
thx,i really ignored the problem. further study need for me. On Apr 20, 5:06 pm, Tom Evans wrote: > On Tue, Apr 20, 2010 at 10:01 AM, victor wrote: > > i have a model and relative form as following: > > class contactTitleForm(forms.ModelForm): > >    titleType = forms.Choic

how to initial data for inlineformset

2010-05-06 Thread victor
docfset=inlineformset_factory(document, documentOnline, form=documentOnlineForm, extra=1, can_delete=False) c = RequestContext( request, { 'docfset':docfset(instance=tdoc,initial=[{'actor':request.user},]), 'documentform':documentForm(initial={'tSUser':getEDS

Re: how to initial data for inlineformset

2010-05-06 Thread victor
if i changed to following: 'docfset':docfset({'actor':request.user}, instance=tdoc), i got: ValidationError On May 7, 10:21 am, victor wrote: >     docfset=inlineformset_factory(document, documentOnline, > form=documentOnlineForm, extra=1, can_delete=False) &g

can i get model field type from a model queryset in django?

2010-09-11 Thread victor
can i get model field type from a model queryset in django? for example: a is b model's queryset b model has following field: - f:charfield - g:foreignkey - h:manytomany is there any way to get field g's type from queryset a? thx. -- You received this message because you are subscribed to th

Re: can i get model field type from a model queryset in django?

2010-09-12 Thread victor
thx for your answer. On Sep 12, 8:47 pm, bruno desthuilliers wrote: > On 11 sep, 18:40, victor wrote: > > > can i get model field type from a model queryset in django? > > for example: > > a is b model's queryset > > b model has following field: >

httpresponse large data aborted with error about buffer_size

2010-11-10 Thread victor
i have a view which render a template with 200 records, i got errors as following: Traceback (most recent call last): File "C:\Python27\lib\site-packages\django-1.2.3-py2.7.egg\django \core\servers \basehttp.py", line 281, in run self.finish_response() File "C:\Python27\lib\site-packages\d

Re: httpresponse large data aborted with error about buffer_size

2010-11-10 Thread victor
only can support 10-30 records per page when use paginator and gzip middleware.will also get above error when more than 30 records per page. -- 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...@google

Re: httpresponse large data aborted with error about buffer_size

2010-11-10 Thread victor
the problem also will occur in normal page switch. -- 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...@google

Question regarding Intermediary Models and concepts

2010-12-10 Thread Victor
I have one part of a project that's responsible for registration of Users and associations with a UserProfile and a Phone Extension. The models involved include User, UserProfile, Client, Extension, and UserProfileExtension. So here's the business logic: 1. Usually the Users are created through t

multi natural_key dependencies problem

2010-03-15 Thread victor
how to set multi natural_key dependincies? Model code as following: class Menu(models.Model): mName = models.CharField(max_length=256) mTitle = models.CharField(max_length=256) url = models.CharField(max_length=1024, blank=True, null=True) ordering = models.IntegerField() mLevel

Re: multi natural_key dependencies problem

2010-03-19 Thread victor
i see,thanks. On Mar 16, 11:41 am, Russell Keith-Magee wrote: > On Tue, Mar 16, 2010 at 11:34 AM, victor wrote: > > how to set multi natural_key dependincies? > > Model code as following: > > class Menu(models.Model): > >    mName = models.CharField(ma

www.replicabagwholesaler.com sell replica and copy designer handbag, contact summer ([EMAIL PROTECTED])

2007-12-27 Thread victor
内容:www.replicabagwholesaler.com is a professional dropshipper and wholesaler who supply with the dropship expreience about 2 years and win the good reputation on this line. Our production include various handbags especially new released handbags and most popular series. www.replicabagwholesaler.c

Request object

2006-08-23 Thread victor
Thank you very much. Regards, Victor --~--~-~--~~~---~--~~ 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

Re: Request object

2006-08-23 Thread victor
Hello James, Thank you for the quick and complete response. I'll check both Django's middleware documentation and your description of Django's request lifecycle. Regards, Victor --~--~-~--~~~---~--~~ You received this message

Searching for Korean-Speaking Senior Django Developer for 3 months incl. free flight and accommodation in Seoul, Korea

2012-03-14 Thread Victor
team to localize the homepage used in other countries and launch in the Korean market in 2-3 months from now. **What Python is used for**: Yogyo's Web site is developed in Python/Django based on the code we use for english-speaking countries. **Contact Info:** * **Contact**: Victor Ching,

Re: AttributeError on _strptime_time

2012-09-25 Thread Victor
MadeR did you ever get to the bottom of this error? I am using python2.6.5, django1.3.1, and tastypie0.9.7 with a mysql5.1 back end. Its a real doozy, I have never seen it when developing locally, but once a week or so I'll get an email from my production django server that has something like th

Inserting a search field into tabularline

2013-05-20 Thread Victor
As a newby I started an app that works quite fine. Here are the models (Forgive some 'slip of the tongue' but I had to translate my *.py's into English and simplify them): In models.py . . class Item(models.Model): id = models.AutoField(primar

Inserting a search field into a tabularline inline

2013-05-20 Thread Victor
As a newby I started an app that works quite fine. Here are the models (Forgive some 'slip of the tongue' but I had to translate my *.py's into English and simplify them): In models.py . . class Item(models.Model): id = models.AutoField(primary

Inlines problem under admin: on production server I'm unable to add more lines in the inline section

2013-05-23 Thread Victor
In admin.py I have ... class MovimentomagInline(admin.TabularInline): model=Movimentomag extra=3 save_on_top=True class MovimentoOperazioneOption(admin.ModelAdmin): list_display = ('segno', 'data_movimento', 'paziente','operatore') fields=(('

Selecting site in admin

2013-05-28 Thread Victor
As a newbye I'm happily using admin. Now I would like to select what a user can see in the admin main page according to its username just as a (non-working) example I would like to follow this idea in admin.py if request.user=='victor': admin.site.register(Categorie) admi

Make a raw_id_fields input textbox wider

2013-05-29 Thread Victor
I'm trying to make the input textbox of a raw_id_fields wider than the default size but without success. Here is what I tried ('codarticolo' is the raw_id_fields): admin.py . class MovimentomagInline(admin.TabularInline): formfield_overrides = { models.CharField: {'widge

Make a raw_id_fields input textbox wider

2013-05-29 Thread Victor
*SORRY My previous message was incomplete *** I'm trying to make the input textbox of a raw_id_fields wider than the default size but without success. Here is what I tried ('codarticolo' is the raw_id_fields): admin.py . class MovimentomagInline(admin.TabularInline):

Not showing a model from the models' list in admin

2013-07-01 Thread Victor
Issuing the "localhost:8000/admin" request in the browser I am presented with the list of all registered models. I don't want one of this models to be visualized in that list even though it is widely used and referenced by other models. How can I do that without unregistering the model? Ciao

Re: admin.py: putting "if condition" in ModelAdmin according to username

2013-10-09 Thread Victor
Yes, I know but unfortunately if in Admin Site you say that a user cannot Add, Delete, and Modify a model if that user is connected he/she doesn't see the model itself in the list but only those models for which it has some kind of permission. I instead would like to make the model visible but n

Saving an inline view and executing an aggregating function only once

2013-11-07 Thread Victor
I made an effort to simplify my app and translate it into English. Here it is = models.py . class Items(models.Model): code = models.CharField(primary_key=True,max_length=15,db_column='code') description = models.CharField(max_length=255, db_

Re: Saving an inline view and executing an aggregating function only once

2013-11-09 Thread Victor
You're almost right. I want that - for each item_code - the sum aggregated by item_code of the items inserted into OrderDetail be automatically inserted into total_quantity_in_store by the same code in Items model. Ciao Vittorio Il giorno 08/nov/2013, alle ore 16:13, Vincenzo Prignano ha scritto:

johnny.backends.memcached.MemcachedCache': 'module' object has no attribute 'CacheClass' ?????

2013-11-09 Thread Victor
In my settings.py I have the following code: . CACHES = { 'default': { 'BACKEND': 'johnny.backends.memcached.MemcachedCache', # 'BACKEND': 'johnny.backends.memcached.CacheClass', 'LOCATION': ['127.0.0.1:11212'], 'JOHNNY_CACHE': True,

Intermediary Models in admin

2011-06-17 Thread victor
Hey guys ! I'm trying to implement a any to many relationship with Intermediary Models. I've been following https://docs.djangoproject.com/en/1.2/ref/contrib/admin/#working-with-many-to-many-intermediary-models And I have almost the same code except for names. The problem : that's crazy slow. My

Disorientated by too many google-maps django packages

2015-01-26 Thread Victor
I'm working for a medical non-profit company for domiciliary assistance of ill people managed by means of a django app in production. One of the models is for patients and contains, among many other pieces of info, their addresses scattered all over Rome. I would like to use a google-maps djan

Re: Disorientated by too many google-maps django packages

2015-01-29 Thread Victor
Many thanks to Mario Goodelj for the very clear example and his explanations. Ciao Vittorio Il giorno 27/gen/2015, alle ore 00:12, Mario Gudelj ha scritto: > Hey Victor, > > Here's some basic JS I've used in a project to plot client locations, and to > show their n

Firing an html file from within a view/template

2015-05-06 Thread Victor
Production Context, Ubuntu 14.04, Django 1.7.7 & Apache2 Dear experts, I'm stranded! What I would like to do is: 1) to provide an initial and final date to make some statistical computation in that period, 2) pass those dates to an R procedure which by means of the package R2HTML produces a

Best approach for using one or more tables of the same database in two different projects

2014-09-22 Thread Victor
Context: Linux Ubuntu, Apache2, Django 1.7, PostgreSQL. As a volunteer of a no-profit company, say Company A, devoted to palliative therapies , I successfully set up a Warehouse Management System (WMS) project on one of their servers using django and exclusively its magical admin interfac

Starting a procedure when opening a model in the admin interface

2014-10-23 Thread Victor
I use Django 1.7, admin interface, and PostgreSQL. I have, among other things, the following model: ### models.py class Patients(models.Model): surname = models.CharField(max_length=60, db_index=True) name = models.CharField(max_length=60, db_index=True) address = models.CharField(max_l

Re: [AGAIN] Inserting further fields of a foreignkey object into change list view

2014-10-23 Thread Victor
Dear Experts, following the indications of Collin I was able to see the extra fields I wanted to show in the change list view. But there's a little problem. The character size of the labels of the readonly_fields are bigger than those of the printed fields so that the visual effect is that the la

post_save strange behavior (at least to me!)

2014-12-05 Thread Victor
Django 1.7.1 and Apache2 in a production context. I have the following situation = models.py class Items(models.Model): code = models.CharField(primary_key=True,db_index=True,unique=True,max_length=20,db_column='code') description = models.CharField(max_length=255) su

Building and firing a web page as an action under admin

2014-05-23 Thread Victor
Django 1.6.4 I've built an application to manage a medical warehouse resorting exclusively to the admin interface and postgresql 9.3. To put it in a nutshell, among other things I have an admin form using inlines that for each patient lists the medical items he/she has been given and the date of

Disabling the "Save", "Save and continue editing", and "add another" buttons while saving inlines

2016-07-18 Thread Victor
My app (FreeBSD, Django 1.9.4, totally developped using the Admin Site) uses, among othe things, the model "Order" and "OrderDetail" as its inline (see below a simplified version). The "OrderDetail" model overrides the default save by means of a somewhat elaborate save function with a long work

How to run django app on a private network

2020-03-20 Thread Victor
Hello guys, how do i run a django app on my network so i can access it from other devices on that network? Thank you -- 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

Re: Inability to Connect django with MySQL database

2020-03-20 Thread Victor
What's the database variable in your settings.py file On Friday, March 20, 2020 at 2:54:05 PM UTC+1, Ifeanyi Chielo wrote: > > Hello, > I am new to Python django, I have been making efforts to connect a django > application to mysql without success. Bellow is the information that I got > PS C:\U

Making a field readonly according to the user in admin.py

2015-11-18 Thread Victor
ion(admin.ModelAdmin): list_display = ('title', 'author', 'quantity') fields=(('title', 'author'), ('quantity')) order_by= ['title', ] admin.site.register(Book,BookOption) I'm trying to explain my problem with

How to use memcache with the queryset of the popup window of a raw field?

2016-04-08 Thread Victor
Under Django 1.9.5 and admin I'm developping an application "myapp" of which below you can see a simplified complete version. Focusing on the OrderOption ModelAdmin its inline OrderDetailinline has a raw_id_field related to the model Item. Now, when I click on the magnifying lens close to t

Object Serializer

2012-10-09 Thread Victor Manuel Quiñones Victor
Hi guys, I need some help here... I need to serialize some objects and save them into the database. What library would you suggest for it? Thank you -- Quiñones Victor Manuel Tel: +54 0362 15 4 880839 Resistencia - 3500 Argentina -- You received this message because you are subscribed to the

Django MongoDB

2012-11-25 Thread Victor Manuel Quiñones Victor
t-packages/django_mongodb_engine/__init__.py", line 13, in settings.INSTALLED_APPS.insert(0, 'django_mongodb_engine') AttributeError: 'tuple' object has no attribute 'insert' Any help? Thank you all. Victor -- Quiñones Victor Manuel Tel: +54 0362 15 4

Re: Django MongoDB

2012-11-26 Thread Victor Manuel Quiñones Victor
ember of TEDx EasternMetropolitanBypass > http://www.ted.com/tedx/events/4933 > > https://www.facebook.com/pages/TEDx-EasternMetropolitanBypass/337763226244869 > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" gro

Re: virtualenv setup

2012-12-29 Thread Victor Manuel Quiñones Victor
gt; https://groups.google.com/d/msg/django-users/-/n4-fu8ioveIJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://group

Re: view data tables?

2013-05-25 Thread Victor Manuel Quiñones Victor
group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://group

Re: Nginx versus Apache

2013-10-08 Thread Victor Manuel Quiñones Victor
it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-

Re: Web development newbie

2011-07-23 Thread Victor Manuel Quiñones Victor
ibe from this group, send email to >> django-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> > > > > -- > *-Furqan Rauf* > *Do you love your creator? Love your fellow-beings first. -

Import models from CSV files?

2009-01-05 Thread Victor Hooi
ot of time =). (will also need to deal with duplicates). Is there a smart way to go about doing this project, or any existing addons I can leverage off? Thanks, Victor --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

Re: Import models from CSV files?

2009-01-06 Thread Victor Hooi
er to do it via raw SQL, or via the django models? Any chance of sample code =)? Cheers, Victor On Jan 6, 7:05 pm, "Valts Mazurs" wrote: > Hello, > > Maybe this app could be helpful for > you:http://code.google.com/p/django-batchimport/ > > If you have to import lots

Re: Import models from CSV files?

2009-01-06 Thread Victor Hooi
heya, Whoops...forgot. I'm also confused on the recommended way to deal with duplicates? (not duplicate .csv files, but duplicate entries, perhaps in two different ones.). Just do a plain search for each entry? Or is there a better way? On Jan 7, 11:55 am, Victor Hooi wrote: > heya, &

Re: Import models from CSV files?

2009-01-07 Thread Victor Hooi
t post the code (I'm halfway through working on it - may not compile cleanly right now, but you get the idea). http://dl.getdropbox.com/u/281283/access_requests.py I guess the important thing is just the users being able to upload the .csv files themselves, and dealing with weirdness in the in

Re: HttpResponseRedirect or render_to_response

2008-09-19 Thread Brian Victor
On Sep 18, 4:26 pm, WillF <[EMAIL PROTECTED]> wrote: > What is the difference between httpresponseredirect and render_to_response? > When should I use which? If you're familiar with how HTTP works, it should be enough for me to point out that HttpResponseRedirect returns a 302 with a Location hea

Forwarding emails through django

2009-01-16 Thread Brian Victor
I'd like to forward incoming emails to a distribution list defined by querying the User table. It seems to me like the easiest thing would be to take the incoming email message and send it back out verbatim to the generated recipients. However, I don't see a way to construct an EmailMessage that

Re: Forwarding emails through django

2009-01-17 Thread Brian Victor
CLIFFORD ILKAY wrote: > Brian Victor wrote: >> I'd like to forward incoming emails to a distribution list defined by >> querying the User table. > In our hosting operation, we store virtual domain, virtual user, and > forwarder data for Postfix in PostgreSQL. The follow

http://jacobian.org/tags/ - Source?

2009-08-17 Thread Victor Hooi
and I was just hoping to roll out something similar just for myself. Cheers, Victor --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-

Re: http://jacobian.org/tags/ - Source?

2009-08-22 Thread Victor Hooi
presented/organised on his site. Just thought there might be existing open source for it floating around somewhere, or something similar. Ah well, maybe it'll be fun to build. Anybody else have thoughts? Cheers, Victor On Aug 18, 11:44 am, Joshua Partogi wrote: > On Tue, Aug 18, 2009 a

Django ORM and Google Gears (or alternatives?)

2009-08-22 Thread Victor Hooi
Python. I suppose my question is, is Django really a good fit for what I'm doing? Primarily, I'm using it for the ORM layer, I guess, so if using Gears means I can't use the ORM...hmm...suggestions? Thanks, Victor --~--~-~--~~~---~--~~ You received thi

Re: NetBeans IDE for Python

2009-04-14 Thread Victor Hooi
on options? And when I start typing, I don't get a list of models, as people up above seem to be getting on occasion. What settings should I change in the project in order to import it correctly, and get autocomplete and the like working? Cheers, Victor On Feb 26, 6:11 pm, "bruce.hpsh

models.py - __unicode() - Access related object's attributes?

2009-10-27 Thread Victor Hooi
he moment, I'm just counting ReturnTrip and ToTrip objects, and adding them. No biggie, but I was wondering if there was a way to get the total number of Trip objects, or at least the number of children? (I'm guessing the number of actual Trip objects themselves would be zero?) Cheers,

Re: models.py - __unicode() - Access related object's attributes?

2009-10-27 Thread Victor Hooi
u think there's any advantages to moving from Abstract to Multi-Table Inheritance? Essentially, we have students, who each have addresses, and who have ToTrips and ReturnTrips between each other (and those addresses). The main operations we'll be doing is searching for and editing trips.

Using SOAP-API as Model?

2009-12-03 Thread Victor Hooi
editing the YSM account. Suggestions? Cheers, Victor -- 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

UserProfile and Admin interface

2009-12-08 Thread Victor Hooi
pear in admin, and nor was there anything about the extra fields under User. There was just the "Auth" and "Sites" section. Anyhow, what's the best way of achieve what I want (basically seamlessly combining User/Person, so it'd appear as if User just had some ext

Re: UserProfile and Admin interface

2009-12-08 Thread Victor Hooi
guess profiles is the way to go, but I'm trying to find a more intuitive way to deal with it all. Cheers, Victor On Dec 9, 2:53 pm, Victor Hooi wrote: > heya, > > I'm having issues extending Django's user model via UserProfile, and > then editing this through the admin

Re: UserProfile and Admin interface

2009-12-08 Thread Victor Hooi
heya, I should probably add an example - we want to add a Title field to the user form. Ideally, this would appear seamlessly as part of the User form, next to the name fields, rather than it's own separate sub- section below. What would be a Django-esque way of achieving that? Cheers, V

FK to an Abstract class? Alternative?

2009-12-15 Thread Victor Hooi
y within Django to handle something like this? Cheers, Victor -- 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-user

Re: very noob : DRY violation in views.py

2009-12-19 Thread Brian Victor
Osiaq wrote: > def services(request): > property = Property.objects.all().order_by('name')[:4] > city = City.objects.all() > category=PropertyCategory.objects.all() > status=PropertyStatus.objects.all() > return render_to_response('website/services.html',{'property': >

Generic Inlines in Admin - Causes Parent model to disappear in Admin

2009-12-22 Thread Victor Hooi
e above? Also, I noticed that when I add a Department, next to a field that has a FK to a user, there's a little green cross to add a new user. Is it possible to have something setup for other FK fields, including generic ones? Cheers, Victor -- You received this message because you are

Re: Generic Inlines in Admin - Causes Parent model to disappear in Admin

2009-12-23 Thread Victor Hooi
heya, Yeah, that was actually it...lol...how silly. Changed 'models' to 'model', works now =). Thanks heaps for that. Otherwise, is this the right way of setting up these relationships, the way I'm doing it? And the right way to use the admin? Cheers, Victor On

Re: Inline and ForeignKeys - Weird ordering?

2010-04-15 Thread Victor Hooi
o popup a new window. Anyhow, I suppose when I create custom forms or extend the admin, I could do that, but otherwise it's not that big a deal. Cheers, Victor On Apr 15, 9:23 pm, Karen Tracey wrote: > On Thu, Apr 15, 2010 at 3:24 AM, Victor Hooi wrote: > > However, I still wanted some

Django Admin - m2m widget with blank=true, null=true - How to unselect all FKs?

2010-04-18 Thread Victor Hooi
but then would turn blue once there was something to remove. Guess it's just different tastes. Cheers, Victor -- 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. T

Re: Django Admin - m2m widget with blank=true, null=true - How to unselect all FKs?

2010-04-18 Thread Victor Hooi
Jani, Aha, that worked, thanks =). Don't know why I didn't think about using Ctrl...lol. However, do you think it'd be obvious to new users, to use ctrl? Cheers, Victor On Apr 19, 2:46 pm, Jani Tiainen wrote: > On 04/19/2010 06:58 AM, Victor Hooi wrote: > > > >

Where to set proxy settings for Django?

2010-04-18 Thread Victor Hooi
his? Should I be setting it in settings.py? Or is there a better place? Cheers, Victor -- 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 gro

Re: Django Admin - m2m widget with blank=true, null=true - How to unselect all FKs?

2010-04-19 Thread Victor Hooi
heya, Yeah, that is an option, just add a clear all button. Shouldn't be too hard. I find the filter_horizontal widget much nicer though, might just use that =). Thanks for your help. Cheers, Victor On Apr 19, 6:26 pm, Jani Tiainen wrote: > No, it's definitely not obvious bu

M2M with Intermediary - Django Admin Support - Doesn't appear?

2010-05-13 Thread Victor Hooi
to get this working on here, I suspect there's something wrong in the above code Before, when I was editing articles in the admin (with just a straight m2m), it offered adding firms to each article in a nice filter_horizontal widget. However, now, with the intermediary model, it's like

VariableDoesNotExist when I go to login page

2010-05-29 Thread Victor Fontes
I get an error in this line: Inicio Everyting was working just fine and all of a sudden I started to get this error: http://dpaste.com/200702/ -- 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...@

PostgreSQL backend - Ident authentication failed?

2010-06-20 Thread Victor Hooi
ON': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'Australia/ Sydney', 'USER': 'victorhooi'}} DATABASE_ENGINE '' DATABASE_HOST '' DATABASE_NAME '' DATABASE_OPTIONS{} DATABASE_PASSWORD

Re: PostgreSQL backend - Ident authentication failed?

2010-06-20 Thread Victor Hooi
ver using verbatim (rsync). Also, is this recommended practice, to use "www-data" as the backend database username? Cheers, Victor On Jun 21, 3:54 pm, Torsten Bronger wrote: > Hall chen! > > Victor Hooi writes: > > [...] > > > I created a blank PostgreSQL database

Re: PostgreSQL backend - Ident authentication failed?

2010-06-21 Thread Victor Hooi
#x27;t any such change, although I don't have a 9.04 system around to verify. Anyhow, is this the recommended configuration, what I have now? Just want to know the right way of doing things? Cheers, Victor On Jun 21, 4:54 pm, Torsten Bronger wrote: > Hall chen! > > Victor Hooi writ

Apache + Gunicorn + Django? Sample Configs?

2010-06-21 Thread Victor Hooi
en to using Nginx + Django + Gunicorn as an alternative. Cheers, Victor -- 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 d

Re: M2M with Intermediary - Django Admin Support - Doesn't appear?

2010-06-24 Thread Victor Hooi
ds replacing a single field on a single model, not sure how it'd handle the intermediary model here. Also is this method still valid/best practice?). Cheers, Victor On May 15, 2:29 am, Nuno Maltez wrote: > Hmmm ... you should have an inline formset at the bottom to add firms > to

m2m with intermediary - model design? Disappears from Django-Admin?

2010-06-24 Thread Victor Hooi
ust for FirmRating/ SpokespersonRating (it obviously breaks the workflow a bit there). How do people normally deal with editing m2m intermediary models in Django? Cheers, Victor -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: m2m with intermediary - model design? Disappears from Django-Admin?

2010-06-24 Thread Victor Hooi
name', 'subject__name', 'source_publication__name', 'page_number', 'url') However, there's still no visible widget for "FirmRating" on the "Add Article" page. I can't tell just from the docs, but is this inline o

Re: m2m with intermediary - model design? Disappears from Django-Admin?

2010-06-24 Thread Victor Hooi
e that in my inline, it says "FirmRating object" right above the select box:' http://twitpic.com/1zo4im/full Any way to hide/tweak that text? Cheers, Victor On Jun 25, 10:09 am, Victor Hooi wrote: > heya, > > Also, I should add I did try using the inlines as described in the &

Re: m2m with intermediary - model design? Disappears from Django-Admin?

2010-06-24 Thread Victor Hooi
;d really like to integrate it in somehow to the inline if possible...lol. Anyhow, finally, thanks for the tip about __self__, completely didn't think about that. Will set that now. Cheers, Victor On Jun 25, 11:03 am, iliveinapark wrote: > Gday Victor, > > Glad you found the i

Django-Admin - radio_fields with add/change pages, but not list_display page?

2010-06-29 Thread Victor Hooi
, where a radio_box would work well with list_display. Anyhow, is there any way to use radio_fields on the Add/Change field, but not with the list_display page? Cheers, Victor -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Newbie Question - django-jython - how to "run" the app?

2010-07-01 Thread Victor Hooi
get the application to run? Do I need to get them to import the web.xml file? I had a look in there, didn't seem to find anything that seems to "run" my app, or point to anything to get it to run? Cheers, Victor -- You received this message because you are subscribed to the Goo

Error in Admin - can't seem to chain __unicode__'s for ForeignKeys

2010-07-08 Thread Victor Hooi
.CharField(max_length=50) #description = models.CharField(max_length=100) description = models.TextField() location = models.ForeignKey(Location) def __unicode__(self): return self.name class Meta: ordering = ['name'] Or have I g

Model Validation - Prevent Datetimefield overlaps?

2010-08-30 Thread Victor Hooi
tions/2243490/django-unique-time-interval-for-the-admin-panel, but it seems to be going a different way that I don't follow). How would I go about structuring this? Any particular tips here, or any algorithms that could work well? Cheers, Victor -- You received this message because you are

  1   2   3   4   >