os.path is a standard Python module, you do have it already.
Cheers
Jirka
On 02/08/2010, yalda.nasirian wrote:
> hi
>
> note
>
> If you want to be a bit more flexible and decoupled, though, you can
> take advantage of the fact that Django settings files are just Python
> code by cons
Hello,
In version 1.2.1, on the admin interface on the form change_list.html,
there is no check box above to select all records.
In addition, when you select a record, it does not change color
(yellow) as in version 1.1.1.
Thank you for your help.
Valerie.
--
You received this message because y
I have a custom model field defined which works pretty fine when i use
the python shell. It stores and retrieves the objects from the
database as it should. I have been trying to use this model field in
the admin form as a form field. in one of my models, this field is
supposed to be the auto gener
If someone is interested,
I just used raw_id_fields in my intermediary inline modeladmin.
class AuthorshipInline(admin.TabularInline):
raw_id_fields = ('author',)
This isn't exactly what I was going for, but it takes the really big
select fields out of the picture.
- Sævar
On Jul 27, 5:24 a
Each patient can have multiple images. Each image can only be of a
single patient. Have I got the model wrong? Should it be a ForeignKey
in ImageRecord to Patient?
On Jul 29, 6:06 pm, Dennis Kaarsemaker wrote:
> On do, 2010-07-29 at 05:35 -0700, Dave wrote:
>
> > In my application I want to enfor
So "import os"
On 2 August 2010 05:57, yalda.nasirian wrote:
> hi
> when i type import sys or os i have error that unknown os
>
> --
> 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...@googlegroup
Already tried to find a better approach without success, raw_id is now the
best option.
On 2 August 2010 10:54, Sævar Öfjörð wrote:
> If someone is interested,
> I just used raw_id_fields in my intermediary inline modeladmin.
>
> class AuthorshipInline(admin.TabularInline):
>raw_id_fields =
No MySQL. But I found a bit of docs saying that this behaviour is
expected: if you use through then that field cannot be automatically
added to the admin pages. It suggested using an inline in these cases
and that has worked, sort of :-).
In fact, I'm beginning to suspect that my model design may
tanx
On Mon, Aug 2, 2010 at 11:54 AM, Jirka Vejrazka wrote:
> os.path is a standard Python module, you do have it already.
>
> Cheers
>
> Jirka
>
>
> On 02/08/2010, yalda.nasirian wrote:
> > hi
> >
> > note
> >
> > If you want to be a bit more flexible and decoupled, though, you can
> >
hi
when i run this command : DROP TABLE books_book;
^
in shell i have error SyntaxError: invalid syntax
$ python manage.py validate
0 errors found
$ python manage.py validate
0 errors found
$ python manage.py sqlall books
BEGIN;
CREATE
where did you run that DROP command ?
--
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.com.
F
hi gnemis can you help me ?
On Wed, Jul 28, 2010 at 10:54 AM, gnarmis wrote:
>
> Thanks for that link up there, David, solved my (similar, but not
> really similar) problem.
> Although this has me concerned about deployment issues...
> -gnarmis
> On Jun 1, 8:46 am, izi wrote:
> > Hi,
> >
> > As
in my shell
On Mon, Aug 2, 2010 at 3:10 PM, Sameer Rahmani wrote:
> where did you run that DROP command ?
>
> --
> 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 unsubscr
On Monday, August 02, 2010 04:05:16 pm yalda.nasirian wrote:
> CREATE INDEX "books_book_22dd9c39" ON "books_book" ("publisher_id");
> COMMIT;
> $ python manage.py syncdb
> Creating table books_publisher
> Creating table books_author
> Creating table books_book_authors
> Creating table books_book
>
if you want to drop a table in your database you should run the DROP
command in your database engine console not directly in linux shell
for example : (mysql)
$ mysql -u root -p
password:
> use DBNAME;
> DROP TABLE books_book;
--
You received this message because you are subscribed to the Goog
Hi.
I'm using pisa (XHTML2PDF) for export the view results in a pdf
The view is generated, a template is filled, then is passed to pisa
and returned as a filestream. Later it's delivered via HTTP. It works
fine for the most of the cases but I have a particular query that
won't go out this way and t
tanx kenneth ! but when i run drop command i have syntax error , but i'm
sure i write command correctly .
On Mon, Aug 2, 2010 at 3:14 PM, Kenneth Gonsalves wrote:
> On Monday, August 02, 2010 04:05:16 pm yalda.nasirian wrote:
> > CREATE INDEX "books_book_22dd9c39" ON "books_book" ("publisher_i
thank you so much sameer ! it works for me .
On Mon, Aug 2, 2010 at 3:18 PM, yalda nasirian wrote:
> tanx kenneth ! but when i run drop command i have syntax error , but i'm
> sure i write command correctly .
>
>
>
> On Mon, Aug 2, 2010 at 3:14 PM, Kenneth Gonsalves wrote:
>
>> On Monday, August
np ;)
--
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.com.
For more options, visit this grou
sameer i have an another problem
my urlpattern is :
from django.conf.urls.defaults import *
urlpatterns = patterns('',
*(r'^admin/', include('django.contrib.admin.urls')),*
)
i try with this again
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
Hallöchen!
Does anybody know a tutorial for Django-related schema migration by
using the SQL console directly? (Preferably PostgreSQL.) We
evaluate South at the moment, but we'd like to have the low-level
knowledge as a fallback. Of course, general SQL knowledge can be
assumed.
It needn't be a
yeah , if you are iranian it's good to check out #django-ir IRC
channel in freenode server
but about your problem
did you put your app name into INSTALLED_APPS in settings.py?
did you create admin.py for your apps ?
--
You received this message because you are subscribed to the Google Groups
i have an another problem
my urlpattern is :
from django.conf.urls.defaults import *
urlpatterns = patterns('',
(r'^admin/', include('django.contrib.admin.urls')),
)
even i try with this code again
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admi
yes , i did all of these . i realy confused . can u send me template of url
pattern ?
tanx
On Mon, Aug 2, 2010 at 3:36 PM, Sameer Rahmani wrote:
> yeah , if you are iranian it's good to check out #django-ir IRC
> channel in freenode server
>
> but about your problem
>
> did you put your app nam
hmmm there is no problem with your urls.py
the problem is in your admin.py , post one of your admin.py
--
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 t
> yeah, i was able to find that exact thing yesterday, and it works and i am so
> happy. now i have one more problem, i cnat get oracle-cx to work. it says
> that "no software installation was found" or something like that. i have the
> python-mysql working but i cant seem to get the oracle databa
> but when i login in my admin page i cant see all of my objects( like
> Publisher, Author, ...)
> http://www.djangobook.com/en/1.0/chapter06/
> i just have groups , users , sites .
> can you help me
Hi,
the Django Book 1.0 is slightly outdated, the admin works slightly
differently with cur
dear sameer as you see in http://www.djangobook.com/en/1.0/chapter06/
. we Still
have not made but we add
*class Admin:*
*pass*
to models.py ,tanx
models.py
from django.db import models
class Publisher(models.Model):
name = models.CharField(max_length=30)
address = models.C
thank you so much jirka
On Mon, Aug 2, 2010 at 3:50 PM, yalda nasirian wrote:
> dear sameer as you see in http://www.djangobook.com/en/1.0/chapter06/ . we
> Still have not made but we add
>
> *class Admin:*
> *pass*
> to models.py ,tanx
>
> models.py
>
>
> from django.db import models
oh my God you'r reading the old book . that book you was reading is
for legacy version of django
you should try this one http://www.djangobook.com/en/2.0/
admin classes are different in django 1.x as jirka said too
you should build an admin.py for each app.
it is good to try #django and #dja
On Mon, Aug 2, 2010 at 4:02 AM, galbourn wrote:
> Hello,
>
> In version 1.2.1, on the admin interface on the form change_list.html,
> there is no check box above to select all records.
> In addition, when you select a record, it does not change color
> (yellow) as in version 1.1.1.
>
>
Similar be
tanx friends for your quickly and helpfull responds .
On Mon, Aug 2, 2010 at 3:55 PM, Sameer Rahmani wrote:
> oh my God you'r reading the old book . that book you was reading is
> for legacy version of django
>
>
> you should try this one http://www.djangobook.com/en/2.0/
>
> admin classes are d
this is my error log:
[Mon Aug 02 04:46:10 2010] [error] [client 190.205.171.66] proxy:
error reading status line from remote server 10.4.139.31, referer:
http://foo.bar.com/reportes/guias/?operaciones=12&bl=20&destino=
[Mon Aug 02 04:46:10 2010] [error] [client 190.205.171.66] proxy:
Error reading
Thank you so much for the valuable feedback regarding my post. I value
peer review, and take it very seriously. I've updated the article to
attempt to address your concerns. Please review it at your convenience
to ensure that your concerns are addressed appropriately.
http://www.tiemonster.info/a/
thank you very much, it was the same problem.
Valérie.
On 2 août, 13:27, Karen Tracey wrote:
> On Mon, Aug 2, 2010 at 4:02 AM, galbourn wrote:
> > Hello,
>
> > In version 1.2.1, on the admin interface on the form change_list.html,
> > there is no check box above to select all records.
> > In ad
On Aug 2, 12:57 pm, Torsten Bronger
wrote:
> Hall chen!
>
> Does anybody know a tutorial for Django-related schema migration by
> using the SQL console directly? (Preferably PostgreSQL.) We
> evaluate South at the moment, but we'd like to have the low-level
> knowledge as a fallback. Of course,
I have a form that validates all of the fields except for radio
buttons. If there is a radio button not selected, it will reset the
form. Any thoughts? Has anyone run into this before?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to t
Hi,
i have the below that im thought would be the best approach to have a
add contact page on my app:
class ContactForm(ModelForm):
class Meta:
model = Contacts
fields = ('contact_type', 'firstname', 'surname', 'notes')
def addcontact(request, request_id=0,
template_name='addc
Hi,
I was wondering if anyone has ever tried to rename the database
constraint names that are created by Django? In particular, I'm
working with Oracle and would like to rename all the SYS_C* constraint
names in my Django schema to something more descriptive. If anyone has
any experience with that
On Aug 2, 2:46 pm, rupert wrote:
> I have a form that validates all of the fields except for radio
> buttons. If there is a radio button not selected, it will reset the
> form. Any thoughts? Has anyone run into this before?
Show some code...
--
DR.
--
You received this message because you are s
On Aug 2, 3:27 pm, alan-l wrote:
> Hi,
> i have the below that im thought would be the best approach to have a
> add contact page on my app:
>
> class ContactForm(ModelForm):
> class Meta:
> model = Contacts
> fields = ('contact_type', 'firstname', 'surname', 'notes')
>
> def a
models.py
RESPONDANT_CHOICES = (
('Excellent', 'Excellent'),
('Good', 'Good'),
('Poor', 'Poor'),
)
class Respondant(models.Model):
key = models.CharField(max_length=8, blank=True, null=True, unique=True)
create_date = models.DateTimeField('date created', auto_now_add=True)
Hi Gonzalo,
It looks like you are just showing me how to search on google which I
already did but couldn't find the solution I was looking for.
I am still looking forward for the help on flexigrid for my project. I
really appreciate your help.
Thanks!
On Jul 30, 2:12 pm, Gonzalo Delgado wrote:
Hi Ramesh,
I haven't work with Flexigrid in my projects, but I did it with jqgrid
and as far I can see is quite the same:
In the Flexigrid sample you have:
$("#flex1").flexigrid
(
{
url: 'post2.php',
Hi Jirka
First of all let me thank you for replying to my question. I did as
you said. But that also not working. If you don't mine please try this
in Windows 7 operating system.
Thank you
Balu
On Aug 1, 11:16 pm, Jirka Vejrazka wrote:
> Hi Balu,
>
> django-admin.py uis copied to C:\Python2x
Thank you for the point in the right direction. In the end i now have:
@models.permalink
def get_absolute_url(self):
return ('c_viewcontact', [str(self.id)])
class ContactForm(ModelForm):
class Meta:
model = Contacts
fields = ('contact_type', 'firstname', 'surname', 'note
Hi,
I have a requirement to log all user actions like created new
order,user logged in,logged out etc including user ip address.And,it
should be displayed in admin section with admin logentries.Is there a
module which I can use? What about reversion?
thanks
--
You received this message because
I'm thinking that I could get a pretty good performance improvement on a
couple of tables by moving their LONGTEXT columns into their own tables.
Just wondering if there's anybody here who has done something like that - is
there a way to do this transparently to Django, so I don't have to re-write
Hi Antoni,
Thanks a lot for your quick reply, I will go through the links you
listed.
On Aug 2, 10:56 am, Antoni Aloy wrote:
> Hi Ramesh,
>
> I haven't work with Flexigrid in my projects, but I did it with jqgrid
> and as far I can see is quite the same:
>
> In the Flexigrid sample you have:
>
Hello all,
djangoproject.com appears to be inaccessible to me. Is anyone else
having problems? Is anyone able to access it?
Toodle-looo...
creecode
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send e
2010/8/2 Nick Arnett :
> I'm thinking that I could get a pretty good performance improvement on a
> couple of tables by moving their LONGTEXT columns into their own tables.
> Just wondering if there's anybody here who has done something like that - is
> there a way to do this transparently to Djang
2010/8/2 creecode :
> Hello all,
>
> djangoproject.com appears to be inaccessible to me. Is anyone else
> having problems? Is anyone able to access it?
>
> Toodle-looo...
> creecode
>
http://downforeveryoneorjustme.com/
works for me!
--
Antoni Aloy López
Blog: http://trespams.
Now working for me as well with no changes on my end. H..
On Aug 2, 9:42 am, Antoni Aloy wrote:
> works for me!
Toodle-lo..
creecode
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send
I am using django.views.static.serve() from a fresh project. The only
change I made was based on this tutorial
http://docs.djangoproject.com/en/dev/howto/static-files/
. When I download a large (60-75mb) 7zip file the size of the file is
~1kb smaller than the actual length. The downloaded size is
That was a simple typo in Dennis' reply. Use \
if model == 'Session'
instead and that error will disappear.
regards
Steve
On 7/30/2010 1:03 PM, Jocelo wrote:
> Hi, Thanks for your previous reply. I'm still having problems... now
> I'm getting the following error:
>
> NameError: glob
Yes.
regards
Steve
On 8/2/2010 5:55 AM, Dave wrote:
> Each patient can have multiple images. Each image can only be of a
> single patient. Have I got the model wrong? Should it be a ForeignKey
> in ImageRecord to Patient?
>
> On Jul 29, 6:06 pm, Dennis Kaarsemaker wrote:
>> On do, 2010-07-29 a
I'm creating a wxPython application that the client can run to make
sure the installation stack is functioning properly. I want to include
the unit test processing in this application but I've run into some
difficulties. An additional wrinkle I threw in was that I am using
py2exe so they don't also
Hello,
In our model, we need to do lookups based on the user's XMPP JID. The JID can
be up to 3071 characters long. The problem we have run into is that MySQL does
not like to index columns that are that large. We are working on an
implementation where we generate a hash and index the hash v
I have a django app with a particular view meant to receive file
uploads via SWFupload. I've successfully used the trick of putting the
csrf token in the post parameters and then copying that to the
csrftoken cookie in the server code before the csrf middleware does
its check. Over SSL it will stil
Balu:
This is not a Windows 7-specific issue. There are obviously differences
between your Windows 7 and Windows XP environments that are cuasing you
to see this message.
As has already been pointed out, you need to make sure that the
directory containing django-admin.py is on your PATH, and that
On 8/2/2010 12:39 PM, Antoni Aloy wrote:
> 2010/8/2 Nick Arnett :
>> I'm thinking that I could get a pretty good performance improvement on a
>> couple of tables by moving their LONGTEXT columns into their own tables.
>> Just wondering if there's anybody here who has done something like that - is
>
try looking if there is something like that in the bugtracker, and if
not, you can help a lot by filing a bug, if posible with some sample
files.
thx.
cheers,
ashley
On Aug 2, 7:29 pm, Tom wrote:
> I am using django.views.static.serve() from a fresh project. The only
> change I made was based on
On 8/2/2010 1:29 PM, creecode wrote:
> Now working for me as well with no changes on my end. H..
>
> On Aug 2, 9:42 am, Antoni Aloy wrote:
>
>> works for me!
>
> Toodle-lo..
> creecode
>
When is the Internet going to come with a guarantee, I wonder ...
regards
We have an intermittent problem when uploading files. About one in five
uploads fails, when the MultiPartParser receives an HTTP_CONTENT_LENGTH of zero.
We are running Django with lighttpd and fastcgi, has anyone else encountered
this problem?
--
Eric Chamberlain
--
You received this mes
Hello,
I have a custom field whose behavior depends on a parameter show_all.
(It makes the field pull from the database for display only those
keywords where show=True.)
class KeywordsField(forms.ChoiceField):
def __init__(self, choices=(), required=True,
widget=widgets.KeywordsWidget
On Mon, Aug 2, 2010 at 2:34 PM, Steve Holden wrote:
>
> Another alternative would be to create a view of the joined tables using
> SQL CREATE VIEW, then treat the view as a table in Django. You do have
> to be careful that the view should be updatable, though.
Ah... I didn't think of views. Ha
On Mon, Aug 2, 2010 at 9:39 AM, Antoni Aloy wrote:
> My first thought would be to backup the database, then put the project
> under South control. Then create a one-to-one relation between models
> and the possible create a upgrade script.
> Then, if necessary, you could create properties in the
I'm trying to make the options of a particular drop down box be
determined at runtime.
I added a __init__ constructor to my django.forms.Form subclass as
follows...
def __init__(self,
data= None,
error_class =
d
I've added a new tutorial: Calendar App to
my Django by Example site. As always, feedback is appreciated.
What would be a good tutorial to do next?
http://LightBird.net/dbe/
-ak
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post t
How to set up a virtual python/django installation
On Tue, Aug 3, 2010 at 9:44 AM, Rainy wrote:
> I've added a new tutorial: Calendar App to
> my Django by Example site. As always, feedback is appreciated.
>
> What would be a good tutorial to do next?
>
>http://LightBird.net/dbe/
>
> -ak
>
70 matches
Mail list logo