On Fri, Aug 6, 2010 at 2:54 AM, Steven L Smith wrote:
> Hello,
>
> I've been charged with creating a front-end in Django for a MSSQL
> database. It
> has to stay in MSSQL for various other reasons, so just using our
> normal
> Postgres stuff won't work.
>
> It is all working, except for the intern
I'm sure there are more entries than this, but here are the ones that
were posted around finishing time in IRC:
http://servertail.com/
http://transphorm.me/
http://www.buzz-fire.com/
http://dash.manoria.com/
http://ratemyflight.org/ <-- my team's
http://www.ihatexml.com/
http://repocracy.com/
http
I have been using CentOS 5 to run Django sites with Apache + Mod WSGI
mostly in VPS environments.
I want to upgrade to a new OS as CentOS runs an old version of python
and it seems that it's not so easy to upgrade it.
What do people recommend?
--
You received this message because you are subscr
Kenneth,
>From my experience, South works well with mysql. However because
sqlite doesn't provide support for some schema alterations such as
dropping columns, it is as you said, pretty touchy.
Ian
On Mon, Aug 16, 2010 at 2:52 PM, Kenneth Gonsalves wrote:
> On Mon, 2010-08-16 at 10:28 +1000, La
My development environment includes Ubuntu 9.10 and 10.04. I'm also using
virtualenvs, but not w/ Apache. I'm using Nginx instead.
This configuration has been working flawlessly for me, and I'm implementing
it on all production servers too. It's quite fast and flexible, and quite
easy to install.
On Mon, 2010-08-16 at 01:54 -0700, Dan wrote:
> What do people recommend?
debian lenny
--
regards
Kenneth Gonsalves
--
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
FreeBSD
On Mon, Aug 16, 2010 at 12:39 PM, Kenneth Gonsalves wrote:
> On Mon, 2010-08-16 at 01:54 -0700, Dan wrote:
> > What do people recommend?
>
> debian lenny
> --
> regards
> Kenneth Gonsalves
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users"
On 16 août, 08:14, shacker wrote:
> I'm trying to figure out why this works:
>
> >>> comments = Comment.objects.all()
> >>>[c.content_object for c in comments]
>
> [returns a list of the objects the comments are attached to]
>
> But this doesn't:
>
> >>> c = Comment.objects.filter(id=111)
> >>> c
Allright I tried a couple of things with your suggested appraoch:
- I printed all the strings used to define paths and files, this all
seems correct.
- The os.mkdir() command is passed without raising an error, but
without creating the directory either, this results in an "IOError: No
such file o
Hi,
I have a model where different users should have different
possibilities to edit, i.e. admin should be able to edit everything,
but users should only be able to edit certain fields.
My problem is that the user form doesn't validate when submitting
update as a user. But I get the error that th
On Mon, Aug 16, 2010 at 7:23 AM, Mark Mooij wrote:
> Allright I tried a couple of things with your suggested appraoch:
>
> - I printed all the strings used to define paths and files, this all
> seems correct.
>
> - The os.mkdir() command is passed without raising an error, but
> without creating t
You'll want to call is_valid() only if the request.method is "POST",
plus your code leaves the possibility of an error if none of those
permissions is found (your elif should probably simply be an else?).
On Aug 16, 6:49 am, Mess wrote:
> Hi,
>
> I have a model where different users should have d
Sorry, I had cut out some unimportant parts of the view causing that
error. The update_contract is called from another method only if it is
a POST.
My main issue is that it works as it should when logged in as admin
(probably because all the fields are in the admin version of the
form). But when l
Hi Doug,
Thanks for your reply. I tried your suggestion:
..
import createKML
..
def createKML(id, basepath=os.getcwd()):
...
try:
kmlpath = os.path.join(basepath, "templates")
kmlpath = os.path.join(kmlpath, "maps")
kmlpath = os.path.join(kmlpath, str(id))
if
somebody have an idea ?
--
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 option
I think the problem is that your form doesn't have all the required
data. When you assign the instance, you provide initial data, and
something for form.save to modify. However, when the data is posted
back, It looks like maybe the non-editable fields aren't in the POST
data. You could add the fiel
Hello
In my view.py I make connection with a distant server and i have to get an
object from it every minute
how can I do that without refreshing all the page
thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send e
On Mon, Aug 16, 2010 at 9:29 AM, Imad Elharoussi
wrote:
> Hello
>
> In my view.py I make connection with a distant server and i have to get an
> object from it every minute
> how can I do that without refreshing all the page
answer: AJAX
hint: jQuery $('#refreshingelement').load(yoururl);
--
J
{{ form.instance.field of the model }}
is a way to access.
--
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.
> since python and php radically differ on the way things are done, it
> would be much quicker to rewrite the code afresh rather than attempt to
> translate it.
ok sir, thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this g
On Mon, Aug 16, 2010 at 4:53 AM, Stephen McDonald wrote:
> I'm sure there are more entries than this, but here are the ones that
> were posted around finishing time in IRC:
>
> http://servertail.com/
> http://transphorm.me/
> http://www.buzz-fire.com/
> http://dash.manoria.com/
> http://ratemyflig
On Aug 16, 3:17 am, bruno desthuilliers
wrote:
>
> Of course. As the error message says, 'c' is here a queryset, not a
> model object. If you want to retrieve a single model object, you have
> to use manager.get, not manager.filter, ie:
Sorry about that brain fart - of course you're right - I jus
Hi, i have "number" field in "newspaper" model. I want assign to it
dynamically a default value, witch would be a incremented by 1 highest
value so far.
So i managed to make a little workaround, since i can't query for last
value of "number" field of model from model itself.
I have created
On Aug 15, 9:34 am, aa56280 wrote:
> > Does the view code in app.views.blah know what to do with the
> > iriencode'd values?
>
> What does that have to do with anything?
More accurately, I should have asked "Does the URL definition and view
for app.views.blah know what to do with the
iriencode'd
+1 for Debian or FreeBSD and Nginx
Really fast/easy to setup and works withouth any problems.
On Aug 16, 12:48 pm, Alex wrote:
> FreeBSD
>
> On Mon, Aug 16, 2010 at 12:39 PM, Kenneth Gonsalves wrote:
>
> > On Mon, 2010-08-16 at 01:54 -0700, Dan wrote:
> > > What do people recommend?
>
> > debian
Hi all,
I'm currently developing a e-commerce website using satchmo and
django. I would like to simplify the admin pannel from the user
perspective. This is why i would like to change the different group of
models. Right now, these group are organized by application. But when
using some external d
Yeah but it's a little bit simpler with apache and mod_wsgi...
If i don't want to run a separate service like gunicorn or something like,
how can we do the same thing than apache+mod_wsgi but with nginx.
We've tried passenger but it's not very stable and not necessarily always
product's ready.
O
Hello,
I am new to Django, and I am trying to develop an application for
researchers to submit data to a database.
I believe that the default admin interface from django.contrib.admin
should be just about perfect for the job. I
either want to subclass AdminSite and make my own administration page
Regarding your issue with get_next, could be because you're invoking the
method when you define default=get_next(). Try it with just the bare method
name get_next.
You could also use the aggregate function instead of creating a new model:
http://docs.djangoproject.com/en/1.2/topics/db/aggregation
> In other words, if you designed the URL regex to handle a certain sort
> of string, and the view it points to handle a certain sort of string,
> and now in your template you're running that string through iriencode
> first, then the URL definition and the view it points to is receiving
> somethin
How about using an autofield?
http://docs.djangoproject.com/en/dev/ref/models/fields/#autofield
On Aug 16, 12:25 pm, Alec Shaner wrote:
> Regarding your issue with get_next, could be because you're invoking the
> method when you define default=get_next(). Try it with just the bare method
> name
Dnia 16-08-2010 o 19:56:01 Nick napisał(a):
How about using an autofield?
Nope. Autofield requires primary_key=True, filed need to be editable, so
user can add values unordered, (10,11,12,13,17,25,9)
I'm checking out aggregation functions now.
--
Linux user
--
You received this message
hi all.
I've found http://code.google.com/p/django-project-management/ out
there as a project management app but have yet to install it and see
what all it can do. Has anyone installed this and do you have an
opinion on it? Is there anything else out there for project
management?
--
You receiv
> +1 for Debian or FreeBSD and Nginx
> Really fast/easy to setup and works withouth any problems.
I second the use of FreeBSD. I personally go the route of FreeBSD 8.1
w/Apache running mod_wsgi, forwarding static media requests to a lighttpd
server. This setup serves me well and is fai
Or you can just run the long running task on a separate thread.
def my_long_running_function():
...
t = threading.Thread(target=my_long_running_function)
t.setDaemon(True)
t.start()
Then make a view that has access to the result calculated on this
thread, and shows the re
I have a domain search form with two fields: a Textarea for inputting
a list of domains to check, and a ChoiceField for selecting a domain
based on suggestions.
The ChoiceField is required, and on the first submission is auto-
populated with suggestions based on the domains listed in the
textarea.
Dnia 16-08-2010 o 19:25:50 Alec Shaner napisał(a):
Regarding your issue with get_next, could be because you're invoking the
method when you define default=get_next(). Try it with just the bare
method
name get_next.
You could also use the aggregate function instead of creating a new
model:
Thanks,
Is there a way to put the process in a different thread or background
job directly from django view (without going through a queue and
cron)?
I heard Python is not very good with multi threading because of GIL. I
am on Python 2.5
On Aug 15, 6:30 pm, Javier Guerra Giraldez wrote:
> On Sa
On Mon, Aug 16, 2010 at 1:43 PM, ydjango wrote:
> Is there a way to put the process in a different thread or background
> job directly from django view (without going through a queue and
> cron)?
sure, you could simply execute an external process; but then you have
to be sure not to start too ma
I'm trying to use the Django template system to render PDF's from .fdf's. The
PDF's are provided by client and I can generate a dummy .fdf from them and edit
that. I can use pdftk to merge the two, but it seems like the template system
does something similar.
My first problem is that the .fd
On Mon, Aug 16, 2010 at 9:49 AM, Mark Mooij wrote:
> Hi Doug,
>
> Thanks for your reply. I tried your suggestion:
> ..
> import createKML
> ..
> def createKML(id, basepath=os.getcwd()):
> ...
> try:
> kmlpath = os.path.join(basepath, "templates")
> kmlpath = os.path.join(kmlpath,
Hi all,
I'm trying to install MySQL for Python on Snow Leopard and I get :
sh: mysql_config: command not found
Traceback (most recent call last):
File "setup.py", line 15, in
metadata, options = get_config()
File "/Users/bradleyhintze/Desktop/MySQL-python-1.2.3/setup_posix.py",
line 43,
Thanks Nick,
I tried the first solution first.
You're right, the many to manys aren't editable on that page, but the
problem is, I'm not seeing another admin page for the new join model:
class FilmmakerPosition(models.Model):
filmmaker = models.ForeignKey(Filmmaker)
film = models
The inline solution is the pretty way to do it. If you just want the
join to show up in the admin, then simply register the join model in
the admin like any other model. In your admin,py include
FilmmakerPosition and then do admin.site.register(FilmmakerPosition)
On Aug 16, 3:24 pm, Wendy wrote:
Thanks, Nick, I just figured that out, doh! So I got the first
example going, I guess I'll try the inline solution as well, if it's
the pretty way to do it... It'll be good for me to actually see what
they both do.
W
On Aug 16, 12:28 pm, Nick Serra wrote:
> The inline solution is the pretty w
On 8/16/2010 2:25 AM, Martin Lundberg wrote:
> Hi,
>
> I started having a problem on my website when working on it locally
> using the runserver dev server. If I started the server I could visit
> a page once (and it loaded quickly) but if I reloaded the page it
> could take like 10 minutes for it
Ok. I have permission from my boss, and have cleaned it up a bit. See:
http://djangosnippets.org/snippets/2151/
Bill
On Sat, Aug 14, 2010 at 7:25 AM, Andreas Pfrengle wrote:
> Hello Bill,
>
> thanks for your answer. However, I've never written a template filter
> yet. Would you present the co
OK, I have the inline solution working in the admin, I can see why
it's prettier!
Now I'm trying to figure out how to refer to these filmmakers in my
film list template, as there is no longer a film.filmmakers object...
So when I look in mysql, films_filmmakerposition has an id, a
filmmaker id, a f
Can you list your models.py for me? What exactly do you want to show
in your template? I'm guessing some sort of WHERE clause, like all
filmmakers for a film or something.
On Aug 16, 5:08 pm, Wendy wrote:
> OK, I have the inline solution working in the admin, I can see why
> it's prettier!
> Now
The form and object are combined when you call:
response = super([YOURMODELFORMHERE], self).change_view(request,
object_id, extra_context=my_context)
You can see what the admin code for def change_view does in Django1.*/
django/contrib/admin/options.py
I was looking at the same thing and found a
mysql_config is usually part of the MySQL client library (not to be
confused with the Python/MySQL library). You can get the full mysql
package from http://dev.mysql.com/downloads/mysql
On Aug 16, 12:21 pm, Bradley Hintze
wrote:
> Hi all,
>
> I'm trying to install MySQL for Python on Snow Leopar
I have a view that handles elections/races. That view takes a request
object and then based on that object sends the information to a
specific template.
For each election/race there is a subset of candidates based on the
initial candidate_set from that race. I would like to know how to
filter that
I have this in my admin.py:
class TutorialAdmin(admin.ModelAdmin):
fields = (
('title', 'category'),
'description',
'tags'
)
admin.site.register(Tutorial, TutorialAdmin)
It works fine when DEBUG = False in settings.py, but it fails
Sure, it's pretty big, here are the relevant fields pulled out:
class Filmmaker (models.Model):
first_name = models.CharField(max_length=30)
last_name = models.CharField(max_length=40)
def __unicode__(self):
return u'%s %s' % (self.first_name, self.last_name
I am running Debian Lenny, and I have 2.5.25 and 2.7 co-exists
Which one would I get for django?
Notice the last response from this link
http://stackoverflow.com/questions/142764/how-do-i-upgrade-python-2-5-2-to-python-2-6rc2-on-ubuntu-linux-8-04
This is the method that I used...
--
You receive
On Mon, Aug 16, 2010 at 5:48 PM, Jerry Stratton wrote:
> I have this in my admin.py:
>
>
> class TutorialAdmin(admin.ModelAdmin):
>fields = (
>('title', 'category'),
>'description',
>'tags'
>)
> admin.site.register(Tutorial, Tutorial
In your view do:
filmmakeritems =
FilmmakerPosition.objects.filter(film=the_film).order_by('position')
Pass that into your template. Then in your template do:
{% for item in filmmakeritems %}
Name: {{ item.filmmaker.first_name }}
{% endfor %}
Etc...
On Aug 16, 6:12 pm, Wendy wrote:
> Sure,
It doesn't know what the_film is:
name 'the_film' is not defined
if I put quotes around 'the_film', it's expecting an integer:
invalid literal for int() with base 10: 'the_film'
I think that what's happening, it's trying to match the id.
I'm going to read about filtering a little more, feels li
Hey everyone, have a multivaluefield to gather a US phone number with
an optional extension. It looks great on the form, however during the
form preview it looks pretty ugly. In the database the number gets
stored as 555 555 x however in the form preview it looks like
this: [u'555', u'
I'm having some trouble constructing a filter that's intended to work
across multiple tables with selected fields. Here's a simplified
outline of my models:
class System(models.Model):
name = models.CharField(max_length=16)
domain = models.CharField(max_length=255, default='example.com')
On 8/16/2010 5:40 PM, Nick wrote:
> I have a view that handles elections/races. That view takes a request
> object and then based on that object sends the information to a
> specific template.
>
> For each election/race there is a subset of candidates based on the
> initial candidate_set from that
Dan,
We also run CentOS 5 on our production servers and have various django projects
running Python 2.6.2 & 2.7.
I'd stick with an OS that you know and use virtualenv to isolate the python
version to the django project.
On Aug 16, 2010, at 1:54 AM, Dan wrote:
> I have been using CentOS 5 to
On 16/08/2010 10:22pm, Doug Blank wrote:
On Mon, Aug 16, 2010 at 7:23 AM, Mark Mooij wrote:
Allright I tried a couple of things with your suggested appraoch:
I doubt it. You shouldn't really do this:
kmlpath = "%s/%s" % (basepath, game_id)
I suggested this to avoid having to cast game
I have the book "The definitive Guide to DJango: Web Development Done
Right".
Both editions use mod_python, and not mod_wsgi.
I have the setup correctly.
The first program was display the current datetime
views.py
from django.http import HttpResponse
import datetime
def current_datetime(reques
1. What is your code for doing the filters? If you want to start with
physical drives it would be something like:
RaidPhysicalDrive.objects.filter(in_array__in_storage__in_system__id=)
2. In your template you've referenced pd.in_array_id, but don't you just
want pd.in_array if you're wanting to
I added the wsgi scripts and incluced that in my views.py
It works...
I know that for every project there is only one views can exist... so
is that the really way???
I want to have some guides here, thank you, and I am sorry for being
stupid if I sound like one
On Aug 16, 9:39 pm, John Yeukh
On Mon, Aug 16, 2010 at 6:38 PM, John Yeukhon Wong
wrote:
> I am running Debian Lenny, and I have 2.5.25 and 2.7 co-exists
> Which one would I get for django?
>
> Notice the last response from this link
> http://stackoverflow.com/questions/142764/how-do-i-upgrade-python-2-5-2-to-python-2-6rc2-on-u
I have several stacked_linline forms and was wondering if anyone knows
how to have the filter_search include the stacked_inline attributes?
Right now I can search the model and all foreign/many to many
fields. I would like to include the stacked_inline fields as well.
--
You received this messa
Congratulations! Don't worry about sounding "stupid". Most people will
make allowances for the fact that you are writing in a foreign language.
regards
Steve
On 8/16/2010 9:56 PM, John Yeukhon Wong wrote:
> I added the wsgi scripts and incluced that in my views.py
> It works...
>
> I know that
On 8/16/2010 9:30 PM, Nick wrote:
>
> Thanks for the reply.
>
> I assume the problem is coming from the views since the template 'for'
> loop is technically doing what it's supposed to.
>
I find that hard to believe - you appear to be saying that you only want
the candidates for the *last* state
On 8/16/2010 10:30 PM, Nick Tankersley wrote:
> Thank you again for your replies. They've been full of usefull
> information about how to clean up an otherwise pretty sloppy bit of code.
>
No problem. I hope you don't mind me keeping this dialog on the list (I
see you didn't copy django-users, per
On Aug 16, 3:43 pm, Karen Tracey wrote:
> So yes, the ImproperlyConfigured error is something you will only get with
> DEBUG on. But I would expect that the effect of the problem it identified
> would be seen at some point when you try using the admin with DEBUG off.
> That is, I'd expect you to h
The_film was just sudo code. I was assuming you wanted to show
filmmakers based on a movie id. I would recommend going through the
django tutorials if you haven't, they go over all of the queries and
how the general layout goes when doing stuff like this.
On Aug 16, 7:46 pm, Wendy wrote:
> It doe
Hi,
I am using django 1.2.1. I dumped the auth data with natural keys (--
natural), but when I try to load them I get the following error:
Installing xml fixture 'auth' from absolute path.
Problem installing fixture 'auth.xml': Traceback (most recent call
last):
File "/var/peertv/peergw/.env/li
74 matches
Mail list logo