On Tue, 2009-12-15 at 23:58 -0800, NMarcu wrote:
> Hello all,
>
>Can you tell me a good Django editor for Debian? Something more
> pretty then default text editor. Something to can edit templates also.
> Thanks.
vim, emacs, netbeans, pydev, idle, boa... Just few to mention, all
depends on yo
On Wednesday 16 Dec 2009 1:38:57 pm Jani Tiainen wrote:
> On Tue, 2009-12-15 at 23:58 -0800, NMarcu wrote:
> > Hello all,
> >
> >Can you tell me a good Django editor for Debian? Something more
> > pretty then default text editor. Something to can edit templates also.
> > Thanks.
>
> vim, emac
On Wed, Dec 16, 2009 at 5:53 AM, chiranjeevi muttoju
wrote:
> hi as i said that i had installed the mysql in other machine. when i
> installing the python-mysql connector using the command
> python setup.py build
>
At a wild guess, not knowing what you've got installed already, sounds
like you do
On Wed, Dec 16, 2009 at 5:21 AM, Victor Hooi wrote:
> class ExaminationRecord(models.Model):
> assessment = models.OneToOneField(AssessmentTask)
I don't particularly understand the point of this class?
~Justin
--
You received this message because you are subscribed to the Google Grou
On Wednesday 16 Dec 2009 1:53:10 pm Justin Steward wrote:
> Not sure on the name of the corresponding red hat package.
>
yum search *mysql*
--
regards
Kenneth Gonsalves
Senior Project Officer
NRC-FOSS
http://nrcfosshelpline.in/web/
--
You received this message because you are subscribed to th
Good idea.
Thank you very much :-)
Xuqing
On Dec 15, 7:19 pm, Daniel Roseman wrote:
> On Dec 15, 7:02 am, Xuqing Kuang wrote:
>
>
>
> > Hi, all.
>
> > Are there any way could keep a attribute new set to a item in QuerySet
> > object ?
>
> > For example:
>
> > >>> tcs = TestCase.objects.filter(
On 15 déc, 17:00, Daniel Roseman wrote:
>
> Should be {% url app-edit object_id=object.pk %} - ie drop the quotes
> around app-edit.
Duh :( I missed that one...
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
Hi Michael,
Thanks for your suggestion.
I´ve added the whole project to the PYTHONPATH under
project->properties->PYTHONPATH->Add source folder
And now it works!
I had to solve an additional error, the app couldn´t find my
"templates" dir.
When running the server on eclipse, it threw an error
"
Thanks, I will try with eclipse and pydev
2009/12/16 Jani Tiainen
> On Tue, 2009-12-15 at 23:58 -0800, NMarcu wrote:
> > Hello all,
> >
> >Can you tell me a good Django editor for Debian? Something more
> > pretty then default text editor. Something to can edit templates also.
> > Thanks.
>
you can also try aptana, a eclipse clone where you can use pydev, too
--
Hinnack
2009/12/16 Nicu Marcu
> Thanks, I will try with eclipse and pydev
>
> 2009/12/16 Jani Tiainen
>
> On Tue, 2009-12-15 at 23:58 -0800, NMarcu wrote:
>> > Hello all,
>> >
>> >Can you tell me a good Django editor
On 16 Dec 2009, at 10:39 , Hinnack wrote:
> you can also try aptana, a eclipse clone where you can use pydev, too
Aptana Studio is not an eclipse clone, it's an eclipse distribution with the
Aptana extension bundled…
In fact, you can download Aptana Studio as a regular Eclipse plugin if you
alr
>> > Is it possible for django to render a javascript calendar? How so?
>> > If this is possible, a code snippet would be very helpful.
Django Admin has a JavaScript calendar you can copy or learn from -
take a look at django.contrib.admin.widgets.AdminDateWidget
Cheers
Jirka
--
You re
Hi,
I want to create a inventory management site, which will be used by
employees. All will need logins to work in the site. I was wondering
if its good practice to create a whole site based within the supplied
Admin site in django?
I really like to look and helper items in the admin site, (e.g.
Hi,
I will try to give my shot at this.
I would create one 'Item' model which have common fields like
description, product category etc.
For quantities I would create a system of units and unit conversion
tables for each item using one model called 'Unit' and one called
'ItemUnit' or similar.
Unit
@Phui Hock:
YES YES YES !!! You are the One, thank you !!!
@creecode: Thank you for exclude(**kwargs) manual, will have closer
look at it, sounds interesting.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
On 16 Dic, 04:03, Karen Tracey wrote:
> On Tue, Dec 15, 2009 at 2:42 PM, goome wrote:
> > Hello
> > i have a model with a CharField field.
> > When in the admin panel i try to insert a new record for the model
> > with a text containing "é" for the field, i got
> > """UnicodeEncodeError at /adm
I use pdb with django often, and it works fine (caveats below), so I
don't think that
it is django per se.
When running doctest, however, at some level interpreter input must have been
arranged to come from that doc string, and that 2 that it prints has
to be captured
so that it can be compared to
Hi,
What would be the best way to convert NodeList created from template
back to a string?
I'm trying to implement a two-pass rendering.
--
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...@googlegrou
WingIDE is, IMHO, the best ide for python and django
> -Original Message-
> From: django-users@googlegroups.com
> [mailto:django-us...@googlegroups.com] On Behalf Of NMarcu
> Sent: Wednesday, December 16, 2009 8:59 AM
> To: Django users
> Subject: Django editor for Debian
>
> Hello all,
On Wed, Dec 16, 2009 at 9:09 AM, Bill Freeman wrote:
> I use pdb with django often, and it works fine (caveats below), so I
And I forgot my caveat. I can enter the debugger using set_trace() just fine,
but I have trouble using pdb.run('...') in that it seems confused
about where the
files are or
Hello, guys!
Have 3 models in my app:
class State(models.Model):
name = models.CharField('state name', max_length=20)
usps_name = models.CharField('USPS 2 letters state codename',
max_length=2)
class City(models.Model):
name = models.CharField('City name', max_length=50)
I'm new to it all, so take what I say with a grain of salt.
That disclaimer aside, the dojango project app for facilitating entry
of dojo javascript has been pretty informative for me with respect to
getting javascripts, in general, working in django templates. It
provides a calendar, as well as
I am using forms in a pretty standard way, however I am running into
some problems which I can't find a solution to involving forms not
updating appropriately.
I have the following form code:
class AllStatsForm(forms.Form):
game = forms.ChoiceField(choices=GetGameChoices())
birdie
Wiadomość napisana w dniu 2009-12-16, o godz. 16:09, przez Limpy:
> I am using forms in a pretty standard way, however I am running into
> some problems which I can't find a solution to involving forms not
> updating appropriately.
>
> I have the following form code:
>
> class AllStatsForm(forms.F
Am I missing something? I want to be able to update just one field in
one records of a database via the Django data model. If I create an
object for that record and update that one field, via
b=Att(fieldname=a_variable)
b.save
It creates a new record with all other fields blank. For simplicity
try:
b = Att.objects.get( pk = whatever_you_like )
b.fieldname = a_variable
b.save
except Att.DoesNotExist:
print "oy vey"
you could also replace b.fieldname = ... with:
b.__setattr__( 'fieldname', a_variable )
itay
On Wed, Dec 16, 2009 at 5:35 PM, rmschne wrote:
> Am I missing somethin
and ofcourse that should be:
b.save()
and not without the ()s
On Wed, Dec 16, 2009 at 5:40 PM, Itay Donenhirsch wrote:
> try:
> b = Att.objects.get( pk = whatever_you_like )
> b.fieldname = a_variable
> b.save
> except Att.DoesNotExist:
> print "oy vey"
>
> you could also replace b.fieldname
We're developing an extranet.
What is the best (and easiest) way to put a complete project behind a
login?
I don't want to add @login_required to all views
Thanks,
Niels
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this g
On Wed, Dec 16, 2009 at 10:09 AM, Limpy wrote:
...
> class AllStatsForm(forms.Form):
> game = forms.ChoiceField(choices=GetGameChoices())
> birdies = forms.IntegerField(min_value=0, label="Number of Birdies")
...
I'm pretty sure that you can pass a callable as the value of choices,
On Wed, Dec 16, 2009 at 4:53 PM, Niels wrote:
> We're developing an extranet.
>
> What is the best (and easiest) way to put a complete project behind a
> login?
>
> I don't want to add @login_required to all views
>
>
> Thanks,
>
>
> Niels
custom context processor?
--
You received this mess
I'm using Netbeans, that has built-in Python support in its latest
version. Pretty happy with it.
On Dec 16, 7:25 pm, "Fernando Rodriguez" wrote:
> WingIDE is, IMHO, the best ide for python and django
>
>
>
> > -Original Message-
> > From: django-users@googlegroups.com
> > [mailto:django-
Hello,
I am trying to deploy a Django developed application as a "subfolder"
of an existing Joomla installation. I have templated my Django app
very similarly to the Joomla installation, so no need to do any kind
of deep integration.
My issue is that I can't get mod_wsgi to work.
I have followed
Thanks for the quick feedback. I'm starting my "try" and I'm sure it
will work.
On Dec 16, 3:42 pm, Itay Donenhirsch wrote:
> and ofcourse that should be:
> b.save()
> and not without the ()s
>
>
>
> On Wed, Dec 16, 2009 at 5:40 PM, Itay Donenhirsch wrote:
> > try:
> > b = Att.objects.get( pk
You can do it easily with middleware.
Here's what I wrote for this exact purpose:
http://pastebin.com/f52e6ef04
You will have to add it to MIDDLEWARE_CLASSES in your settings.py.
Shawn
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
On Dec 16, 12:58 pm, NMarcu wrote:
> Hello all,
>
> Can you tell me a good Django editor for Debian? Something more
> pretty then default text editor. Something to can edit templates also.
> Thanks.
You could use eclipse ide for this with pydev or try aptana ide
--
You received this messa
Disclaimer: This is my first Django adventure, please be gentle.
I am currently working on a model that has a foreign key pointing to
itself. This foreign key is not mandatory. Think of a post in a forum.
The post will have a number of replies. The post itself will not have
a foreign key however e
Nano.
NMarcu schrieb:
> Hello all,
>
>Can you tell me a good Django editor for Debian? Something more
> pretty then default text editor. Something to can edit templates also.
> Thanks.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
Not sure on the Django side, but I know that most forum software uses a
separate table for threads, having the posts refer back to the thread_id.
The first post, would obviously be the topic of the thread.
On Wed, Dec 16, 2009 at 9:31 AM, Stewart wrote:
> Disclaimer: This is my first Django adve
I'd like PartnerRegistration's default_provider field to be filtered in
PartnerRegistrationInline, like how Partner's default_provider field is
filtered in PartnerAdmin.
When I try the code below, I get a DoesNotExist exception in:
self.fields['default_provider'].queryset =
self.instan
I do something similar in my app. I display a whole bunch of posts to
the user, and they can choose to reply to any one. In my case all the
displayed posts are in a single form. Associated with each post is a
reply button whose onclick handler makes a call to a jquery function I
wrote called addR
Well, you're probably getting the error on your 'extra' inlines.
self.instance is unbound in that case, and so self.instance.providers
cannot be looked up.
I wrote a little thing to fetch a proper object though... just be sure
to include your parent model's field in your fields on the inline.
Then
I'm using mod_wsgi to host my Django site, and all is working well,
except...
I'd like to access an environment variable set in the Apache
configuration like so:
SetEnv TIER dev
The os.environ.get() function seems appropriate for this, but no
luck. Using this code:
PATH = os.environ.g
On Dec 16, 3:09 pm, Limpy wrote:
> I am using forms in a pretty standard way, however I am running into
> some problems which I can't find a solution to involving forms not
> updating appropriately.
>
> I have the following form code:
>
> class AllStatsForm(forms.Form):
> game = forms.Choi
You need to use the Django request object to get access to the WSGI
environ variable set and look them up there. When using SetEnv with
mod_wsgi, they are not pushed into os.environ. Although mod_python
does allow one to push variables into os.environ from Apache
configuration, that is arguably bro
Post the actual bits of your Apache configuration related to setting
up Joomla and mod_wsgi. Without seeing how you have done it and how
they relate to each other, not possible to debug your problem.
Graham
On Dec 17, 2:56 am, Urko Masse wrote:
> Hello,
>
> I am trying to deploy a Django develop
I wrestled with this same issue a few days ago. The section
"Application Configuration" on this page provides some guidance:
http://code.google.com/p/modwsgi/wiki/ConfigurationGuidelines
In a nutshell, the apache SetEnv isn't setting values in the process
environment that os.environ represents.
I want to create folder inside the app folder eg:
application
__init__.py
models.py
views.py
manager.py
...
i want to separate in folder, like, one folder to models when i put
models class inside like:
application
__init__.py
models
pa
On Dec 15, 2:01 pm, Michael K wrote:
> On Dec 15, 12:30 pm, Michael K wrote:
>
> > I tried to download the TAR file(s) for releases, but I get a ~5Mb
> > corrupted tar.gz from the website.
Should I take the silence to mean I should open a bug report?
--
Michael
--
You received this message b
Hello,
I'm new to Django and I'm following part 1 of the tutorial. When I try
creating a new project, the following error appears:
$ ~/programming/python/django-trunk/django/bin/django-admin.py
startproject mysite
Traceback (most recent call last):
File "/Users/gafiore/programming/python/django
Thank you. The code fixed my problem.
On Dec 16, 2009, at 1:48 PM, Tim Valenta wrote:
> Well, you're probably getting the error on your 'extra' inlines.
> self.instance is unbound in that case, and so self.instance.providers
> cannot be looked up.
>
> I wrote a little thing to fetch a proper o
You need to have django installed in your pythonpath.
You can see the current python path by running python console and
import sys
print sys.path
If there's not the directory containing django sources, try adding the
directory to the PYTHONPATH system environment variable, or symlink it
somewhere
It realy depends on the level of customisation you'll need.
>From my experience there are always new and new feature requests and it
forces you to hack default admin more and more. And in one point you'll see
that creating own app would be easier.
And don't forget that admin is supposed to be use
Obviously you need to pickle the whole generated data, not just generators.
1] But I'd use response.content propery that returns the string no matter
how the request is created.
2] Subclassing the cache middleware, or creating your own decorator for that
seems like a cleaner way then pathing the
On Wed, Dec 16, 2009 at 2:13 PM, Michael K wrote:
> Should I take the silence to mean I should open a bug report?
I clicked the "download" link for Django 1.1.1, and the package
downloaded. On finishing the download, I was able to checksum it and
get the same results as the signed checksum docume
1. You must place a file __init__.py in each sub-directory (folder)
from which you will import, such as your models and views directories.
2. The __init__.py in your models directory must import all modules
containing modules. When you add an app to installed apps in
settings.py, django will im
I believe I'm doing that, look at the last entry in the path:
$ python
Python 2.6.4 (r264:75821M, Oct 27 2009, 19:48:32)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print sys.path
['', '/Library/Frameworks/
How do I set the value of a field (which is relevant to form, but not
based directly on the same model) on a modelform when it is displayed
in the admin? I am using the field (with JQuery) to filter the set of
available foreign keys, but want the field to be set when the form
loads an existing rec
I need help installing Django on Windows XP SP3. The docs explain
about running on Linux/Mac.
--
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, sen
On Wed, Dec 16, 2009 at 5:13 PM, reactosguy wrote:
> I need help installing Django on Windows XP SP3. The docs explain
> about running on Linux/Mac.
>
>
The docs, specifically here:
http://docs.djangoproject.com/en/1.1/topics/install/#installing-official-release
also mention Windows. Without s
We just launched the public beta of FeedMagnet a few minutes ago. It
is a Django-powered web app that helps business harness social media.
It is essentially an aggregator that pulls in content from multiple
social networks and lets you do things with it - like putting the
incoming content back up o
On Dec 17, 2:07 am, Shawn Milochik wrote:
> You can do it easily with middleware.
>
> Here's what I wrote for this exact purpose:http://pastebin.com/f52e6ef04
>
> You will have to add it to MIDDLEWARE_CLASSES in your settings.py.
I use a similar middleware for putting the whole site behind HTTP
B
I wanted to echo what Bill has just said.
One simple (yet effective) reason why allowing multiple models/views
in a single file is handy is because you get to remove lots of
duplicate code surrounding imports and utility functions.
Bill's process should be able to work, theoretically. You may wa
Is it possible to display calculated values for models in the admin
interface. I know about the list_display attribute for model.Admin
but all I really want to do is add text to a model edit form so I can
see calculated values.
For instance I have a model called Profile with a DateField called
bi
I've just started learning django using "The Definitive Guide to
django" second edition.
Going by the initial example in Chapter 3 I get this.
Page not found (404)
Request Method: GET
Request URL:http://127.0.0.1:8000/
Using the URLconf defined in mysite.urls, Django tried these URL
patterns
On Dec 17, 12:03 pm, Streamweaver wrote:
> Is it possible to display calculated values for models in the admin
> interface. I know about the list_display attribute for model.Admin
> but all I really want to do is add text to a model edit form so I can
> see calculated values.
>
> For instance I h
On Thu, Dec 17, 2009 at 12:26 PM, nodxof wrote:
> I've just started learning django using "The Definitive Guide to
> django" second edition.
>
> Going by the initial example in Chapter 3 I get this.
>
> Page not found (404)
> Request Method: GET
> Request URL: http://127.0.0.1:8000/
> Using th
After posting this I paid a little more attention to the text of the
book! I was just viewing the site root of course. The URL "http://
127.0.0.1:8000/hello" produces the correct results. Apologies for such
a careless entry.
Don
On Dec 16, 8:26 pm, nodxof wrote:
> I've just started learning djan
Sorry, I was not at work when I posted. Here are some details:
I am running XAMPP, the server info line is:
Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i mod_wsgi/3.0
Python/2.6.4 PHP/5.2.9
I have been able to solve the issues with permissions, and got the
mod_wsgi script to run ("Hel
Right after my last reply I figured it out:
I need to add this line to my Apache config:
-
NameVirtualHost *:80
-
All is working now, at least in my development server, and I can move
on to try to get Django w
I can vouch for running Django on Windows! it works fine,, just follow
directions precisely. You must use command line, for ALL steps, not
GUI or you will probably never get it going though. My biggest error
was attempting to use GUI (file manager etc) for some steps...
On Dec 16, 4:17 pm, Karen T
I'm not looking for an answer, just thought I would post this problem
so if someone else gets it they'll have one place to look anyways.
I had a model with some field names greater than 31 characters. Since
most databases restrict column name length to 31 characters I would
get this error when try
On Thursday 17 Dec 2009 10:17:24 am mtnpaul wrote:
> Is this information useful to the community? Should it be posted in
> another place?
>
I find this interesting - but have been unable to find any documentation for
postgresql/sql that points to this 31 character limit - any clues?
--
regards
On Dec 16, 2009, at 8:55 PM, Kenneth Gonsalves wrote:
> I find this interesting - but have been unable to find any
> documentation for
> postgresql/sql that points to this 31 character limit - any clues?
By default, identifiers in PostgreSQL are limited to 63 characters,
although that can be
Hi I have been reading stuff like:
http://wiki.python.org/moin/SortingListsOfDictionaries
I want to sort a list of dictionaries (alphanumeric values) by
multiple keys (achieved with code below). However I would like to
customise the comparator to put empty objects last.
eg:
def orderBasedOnDepa
We have not made a final decision on our database engine. I actually
prefer Postgresql. During early development
I also am probably wrong about the "most databases" statement above .
Oracle (I believe) is limited to 30 characters (MySQL is 64).
Postgresql 7.2 had a limit of 32 characters.
On Dec
Hi Gaston,
I am also pretty new to python. Once I had a similar issue, it turned
out to be permissions on the directories. Since you are creating a
symlink, make sure that all the directories have appropriate
permissions.
Regards,
Abhaya
On Dec 17, 2:22 am, Gaston wrote:
> I believe I'm doing t
76 matches
Mail list logo