Hi,
I like that idea.
I have a problem with implementing it.
I got the following code:
f = BuchungForm(initial= {'Datum': heute, 'Stunden': 0, 'Minuten': 0,})
choices = Aktivitaeten.objects.all()
f.fields['Aktivitaet'].choices = choices
I used all() just for testing of couse i'll filter later.
Okay i got it...
Thanks a lot !
. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
XSLT Developer
LexisNexis
Marxergasse 25, 1030 Wien
mailto:patrick.sz...@lexisnexis.at
Tel.: +43 (1) 534 52 - 1573
Fax: +43 (1) 534 52 - 146
-Ursprüngliche Nachricht-
Von: django-use
so how to pass over ?
i made an upload form for tree files
then i use data in these files and create a table.
next i need tu upload more tree files but in the path there is the tree file
before so i hope to remove it !!
then django Crying me with SuspiciousOperation
maybe i am a little bit "bru
On Apr 21, 7:10 pm, "Szabo, Patrick \(LNG-VIE\)"
wrote:
> Hi,
>
> I want to filter the dropdownlists that are automatically used to select
> a foreign-key in forms (in my views).
>
> Normally that could easily be done with "class Meta" in the Modelform.
>
> Thing is i want to filter by an attrib
test
On Apr 21, 7:10 pm, "Szabo, Patrick \(LNG-VIE\)"
wrote:
> Hi,
>
> I want to filter the dropdownlists that are automatically used to select
> a foreign-key in forms (in my views).
>
> Normally that could easily be done with "class Meta" in the Modelform.
>
> Thing is i want to filter by an at
I'm sorry, maybe I didn't explain it correctly.
I have a form (not a modelform) with a modelchoicefield.
class myForm(forms.Form):
recorridos = Recorrido.objects.filter(showinform=True)
option = forms.ModelChoiceField(recorridos)
User selects a choice, and POST.
In my view, after valida
Hi Kamal,
checking my install history, this is what I had to do to use
cx_Oracle on Ubuntu Server:
$ /usr/local/oracle/instantclient_11_2$ ln -s libclntsh.so.11.1 libclntsh.so
$ WITH_UNICODE=1 ORACLE_HOME=/usr/local/oracle/instantclient_11_2
python setup.py build
$ sudo bash
# WITH_UNICODE=1 OR
Could You also send us the definition of Book class?
Ogi
On Donnerstag 21 April 2011 10:00:17 pm you wrote:
> Hello,
>
> I have been working through the Django Book, and I keep getting syntax
> errors in the examples in Chapter 6.
>
> The following example works:
>
> class BookAdmin(admin.Mode
On Fri, 22 Apr 2011 07:02:22 +0300, Oleg Lomaka wrote:
> Blog.objects.filter(entry__pub_date__lte=date(2011, 4, 1),
> entry__headline__contains='Easter
> ').latest('pub_date')
>
> Or
>
> Blog.objects.filter(entry__pub_date__lte=date(2011, 4, 1),
>
Hi,
I've created a small and simple Python helper module to have protected web
APIs in Django or other python projects, using a secret key string.
It's using HMAC MD5.
The main concept is of Facebook 'signed_request'.
For details: https://github.com/subhranath/python-web-api-auth-helper
Thanks,
Thanks for the links.
On Apr 21, 11:56 pm, Oleg Lomaka wrote:
> On Fri, Apr 22, 2011 at 1:20 AM, octopusgrabbus
> wrote:
>
>
>
> > Here is the pertinent code:
>
> > def reconcile_inv(request):
> > errors = []
> > cs_list = []
> > return_dc = {}
> > cs_hold_rec_count = 0
> > try:
I attempted to install djang-tinymce, yesterday. failed miserably. Is their
some runserver issue that results in an extra step? I dumped the
djang-tinymce in my dist-packages in the admin media. created a folder in my
site static folder called js and placed the js files their. Then went into
my adm
Hello!!!
I am new to django, and am running the tutorial. I have edited
'settings.py' and am running "python manage.py runserver".
When I run the server and then call "python manage.py syncdb" against
my Postgres database, everything just hangs.
If I kill 'runserver', then I get this message fro
Hello,
we're going to build some "federated" apps. Let's call them
app1.example.com and app2.example.com. I need to do two things:
1. single sign on
2. share some data between the two profiles. For example i want to
keep username, name and surname in the same place, while the phone
number should j
Hi:
I think you configuration for database(postgresql) is not correct , or your
database is not running, make sure you can connect your database using you
profile on settings,py
2011/4/22 Lancinè I KABA
> Hello!!!
> I am new to django, and am running the tutorial. I have edited
> 'settings.py'
Try to connect to the DB with a „real“ client and see i fit works at all.
The webserver (manage.py runserver) does not need to be running when you call
syncdb.
Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im
Auftrag von ???
Gesendet: Freitag, 22. April 2011 13:57
Hey all,
A question about form fields and widgets: I want to use custom ones in
a ModelForm, but I'm not sure where to specify this.
I see the widgets dict in the ModelForm Meta class to control the
custom widgets, but no equivalent for custom form fields.
http://docs.djangoproject.com/en/1.3/top
On Apr 20, 5:06 pm, Daniel Gagnon wrote:
"The first one uses a jquery plugin that's discontinued and the second
one
works only in the admin."
But that first project is live; did you contact the author and ask him/
her about plans to update it (especially as the jquery plugin in
question has a cl
I'm working on an app which makes extensive use of AJAX. I'm also
using named URLs so I don't have to hard-code URLs into my templates.
The problem is that if a URL pattern requires extra info after the
path, my templates don't render, because the extra parameters aren't
known until the user makes
Hi Jirka,
Thanks for the response.
I have installed cx_Oracle in Solaris again and followed this steps but
still the error is same:
Exception Type:DatabaseErrorException Value:
Error while trying to retrieve text for error ORA-01804
Download cx_oracle module:
http://sourceforge.net/projects/c
On Apr 21, 11:40 pm, kamal sharma wrote:
> When i try the same code from python Shell then it is working fine.
Okay, so it does sound to me like it's your web server blocking access
to the entire ORACLE_HOME directory.
Is it running under a chroot jail? If so, then you will need to copy
your en
Are you getting this error only when using the app through a web server?
Have you verified that the web server does have ORACLE_HOME and
LD_LIBRARY_PATH correctly defined? (e.g. by logging it using os.environ).
Are you sure that the user that is used to run your webserver has
permissions to read a
I think i have done a mistake in my last cx_Oracle installation. Is this a
problem? I used one python while build and another while install.
ex: [me] ~/install_cx_oracle/cx_Oracle-5.0.3> /usr/local/bin/python setup.py
build
[me] ~/install_cx_oracle/cx_Oracle-5.0.3> sudo python setup.py insta
say for instance you had a CartItem that was laid out pretty much as
follows
class CartItem(models.Model):
cart_id = models.CharField(max_length=50)
date_added = models.DateTimeField(auto_now_add=True)
quantity = models.IntegerField(default=1)
size = models.CharField(max_length=20
I think you just re-invented generic foreign keys:
http://docs.djangoproject.com/en/1.3/ref/contrib/contenttypes/#generic-relations
--
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
On Fri, Apr 22, 2011 at 5:36 AM, Michael Radziej wrote:
> In SQL, it's something along
>
> SELECT ... FROM blog
> JOIN entry e1 on e1.entry_id = blog.id
> AND e1.pub_date <= ...
> AND e1.headline LIKE "%Easter%"
> AND NOT exists
> ( SELECT id from entry e2
> WHERE e2.entry_id
On Fri, 22 Apr 2011 13:08:17 -0500, Jacob Kaplan-Moss
wrote:
> Blog.objects.raw('''SELECT * FROM blog
Hey, that's cheating :-)
> No, really -- if I was faced with a query, like this, that was easier
> to express with SQL, I'd reach for `raw()` long before trying to
> figure if I could twist th
Yes, i am getting this error when i used from the web application. Also all the
user have the permission to webserver to read all Oracle client files.
Not sure how it got set to LD_LIBRARY_PATH
/opt/apache-2.2.16/lib:/usr/local/lib:
I have defined the LD_LIBRARY_PATH and ORACLE_HOME as follows in
Hello,
I am going through the Django Tutorials on the Django home page. All
has gone fine, except one thing:
When building the admin page, I can't get the unicode translator to
work. It is supposed to change "Poll: Poll object" to readable text.
It just doesn't work. I am using PostgreSQL set for
What does "it just doesn't work" mean? What errors are you getting?
What is it doing or not doing?
--
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
On 19/04/11 Jacob Kaplan-Moss said:
> Probably not -- that'd be a pretty heinous violation of separation of
> concerns. Remember that Django can (and often is) used outside of a
> web request/response cycle (think management commands, cron jobs,
> interactive shells, ...).
>
> The right way is in
Hi all,
I'm the chief editor at DZone.com, a social linking and blogging
community for developers. We've got this weekly 6pg cheat sheet
(sorta like spark charts) that we produce every week on a developer
topic. Look here for some examples: refcardz.dzone.com Russ Magee
showed me a RevSys chea
On Fri, Apr 22, 2011 at 4:22 PM, John Maines wrote:
> Hello,
>
> I am going through the Django Tutorials on the Django home page. All
> has gone fine, except one thing:
>
> When building the admin page, I can't get the unicode translator to
> work. It is supposed to change "Poll: Poll object" to r
Hello guys,
I have a following models:
class Movie(models.Model):
title = models.CharField(max_length=255)
year = models.IntegerField(max_length=4)
rating = models.DecimalField(max_digits=2, decimal_places=1, default=0)
class Request(models.Model):
movie = models.ForeignKey(Movi
Facebook signed_request POST parameter seems to get pre-processed by
Django - http://developers.facebook.com/docs/authentication/signed_request/
Here is what I'm getting back in my view instead:
,
POST:,
COOKIES:{},
--
You received this message because you are subscribed to the Google Groups
Hi,
I'm a total newbie slogging my way through a tutorial. I've reached an
impasse with logging off
In views my code includes
from django.contrib.auth import logout
def farewell(request):
logout(request)
return HttpResponseRedirec
Hey,
We are in the process of migrating from Django 1.1 to Django 1.2.5 and
I'm investigating a performance slowdown in our unit tests. We see
about a 30% slowdown when running our unit test suite with 1.2.5
versus 1.1. I was just wondering if anyone else had noticed something
similar to this.
This was mentioned in Eric Florenzano's talk at DjangoCon 2010. Each
version has gotten slower.
I haven't heard anything about the cause or plans to fix this, though.
If you've got a good test suite you can always use tools like Python's
profile module to track down slowdowns in your Django code a
It's probably that you didn't import 'farewell' from views.py in
urls.py, so it's not in scope.
--
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, s
Hi, using Django framework for CDR-Stats + Asterisk. The instructions
kind of confuses me. The How to get Django section has 2 options:
-Get the latest official version
and
- Get the latest development version
I am choosing the first one, but after that, it says:
After you get it
See the installa
Hi Hurin,
Both versions will work fine with MySql, but I recommend you install
the latest official version (version 1.3), specially if you haven't
worked with Django before. You can read the quick install guide here:
http://docs.djangoproject.com/en/1.3/intro/install/
And the more complete guide
Hello!
I need register EmployeeAdmin using atributes in Person class:
My admin.py:
class EmployeeAdmin(admin.ModelAdmin):
list_display = ("name","date_inclusion")
ordering = ["-name"]
search_fields = ("name",)
list_filter = ("date_inclusion",)
list_per_page = 10
admin.site.r
Good call - thanks Shawn - totally forgot to check the imports - the
joys of being a newbie.
Thanks for the quick reply.
On Apr 23, 11:24 am, Shawn Milochik wrote:
> It's probably that you didn't import 'farewell' from views.py in
> urls.py, so it's not in scope.
--
You received this message b
On Fri, Apr 22, 2011 at 11:55 PM, Guevara wrote:
> [...]
>
> class Person(models.Model):
> name = models.CharField(max_length=50)
> date_inclusion = models.DateField()
>
> class Employee(models.Model):
> person = models.OneToOneField(Pessoa)
>
> I reed this doc http://docs.djangoproject.c
Is there a plan in place to address this?
On Fri, Apr 22, 2011 at 9:22 PM, Shawn Milochik wrote:
> This was mentioned in Eric Florenzano's talk at DjangoCon 2010. Each
> version has gotten slower.
>
> I haven't heard anything about the cause or plans to fix this, though.
> If you've got a good t
> On Fri, Apr 22, 2011 at 9:22 PM, Shawn Milochik wrote:
>>
>> This was mentioned in Eric Florenzano's talk at DjangoCon 2010. Each
>> version has gotten slower.
>>
>> I haven't heard anything about the cause or plans to fix this, though.
>> If you've got a good test suite you can always use tools
Thank you Pedro.
I know both options work. What I don't quite understand is if running
sudo python setup.py install
Would be sufficient setup for my Django + CDR Stats + MySQL setup. It looks
though, like I also need MySQLdb to interface between Django and the DB. Im
wondering if the devs from C
47 matches
Mail list logo