Hi,
I just discovered gunicorn after some problems with wsgi.
It seems like a very clean setup together with supervisord.
However, it's not clear to me how you set it up when you
have multiple virtualenvs.
It's easy enough to install gunicorn in a virtualenv and then
specify a upstream in nginx
btw, I was correct, it was the development settings causing the problem
On Wed, Jul 13, 2011 at 1:43 PM, Joshua Russo wrote:
> Correct
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://gr
Thanks a lot! That worked.
On Tue, Jul 19, 2011 at 9:22 PM, Nan wrote:
>
> Try unique_together on employee and team in the TeamMember model -- it
> will throw an error if you try to add a record with the same employee
> and team as another.
>
> On Jul 19, 7:27 pm, Felipe Spychalski wrote:
>> Hel
Hello,
I just started using django two days ago. I tried your method and
>>> p=Poll.objects.all()[0]
>>> p
#results in
>>> type(p)
#results in
>>> dir(p)
#gives an error
['DoesNotExist', 'MultipleObjectsReturned', '__class__', '__delattr__'
'__dict__', '__doc__', '__eq__', '__format__', '__geta
On Tue, Jul 19, 2011 at 11:53 PM, Tom Evans wrote:
> Hi all
>
> I recently upgraded one of my apps to the next iteration. This used a
> third party library, which started spewing out DeprecationWarning
> messages when I deployed it to the test site. None of these warnings
> appeared when I was dev
I will have a look in the docs for this. The less thinking I have to
do, the better! :) Thanks.
On 7/19/11, Nan wrote:
>
> Try a ManyToManyField, which essentially creates the article_devices
> table but abstracts it away so you don't have to think about it.
>
> On Jul 19, 7:52 pm, Alex Hall wro
Try unique_together on employee and team in the TeamMember model -- it
will throw an error if you try to add a record with the same employee
and team as another.
On Jul 19, 7:27 pm, Felipe Spychalski wrote:
> Hello,
>
> I'm having an issue with my schema and the admin interface where I got
> 2 t
Try a ManyToManyField, which essentially creates the article_devices
table but abstracts it away so you don't have to think about it.
On Jul 19, 7:52 pm, Alex Hall wrote:
> Hello all,
> I am trying to figure out the best way to represent a field in a
> model. The model is an article, which is as
Hello all,
I am trying to figure out the best way to represent a field in a
model. The model is an article, which is associated with multiple
devices (devices is another model). When adding a new article, an
admin is presented with a multiple select list of all the rows in the
devices table. All se
You're trying to call json_command when the view is actually named
json_send_command.
Cheers,
AT
On 7/19/11, Kevin Anthony wrote:
> i'm trying to use JSON on a website that also has a HTML frontend, but
> when i enable this line in urls.py
> url(r'^json/sendcommand/','rchip.views.json_send_comm
Hello,
I'm having an issue with my schema and the admin interface where I got
2 tables with a ManyToMany relationship: Employee and Team.
The problem is I'm able to add one Employee to the same Team twice.
Is there a way to prevent this from happening? Adding 'unique' to the
Employee FK makes it s
No, it's there
def
json_send_command(request,command_in=None,command_text_in=None,source_in=None,method_in=None):
and it works, if i navigate to
mysite.com/json/sendcommand/
i get the correct message telling me i didn't supply a command
On Tue, Jul 19, 2011 at 6:29 PM, Andre Terra wrote:
> Kevi
Kevin,
Please open your views.py module located inside the rchip module and
you will see there is no view named json_send_command.
Please refer to that app's documentation to find more about the
correct setup for your urls.
Cheers,
AT
On 7/19/11, Kevin Anthony wrote:
> i'm trying to use JSON o
I use ModelForm. One of fields is:
repertoire = models.ForeignKey(Repertoire)
I need to change it's display type. Instead of using *unicode* in display I
want to show name and date of repertoire. How in ModelForm I can do that?
--
You received this message because you are subscribed to the G
i'm trying to use JSON on a website that also has a HTML frontend, but
when i enable this line in urls.py
url(r'^json/sendcommand/','rchip.views.json_send_command'),
i get this message
Caught ViewDoesNotExist while rendering: Tried json_command in module
rchip.views. Error was: 'module' object has
I am deploying my Django projects on a host where I have the following
kinds of URLs:
http://yrl.hostname.com/djangoproject1
http://yrl.hostname.com/djangoproject2
Then, let's say I also make app A for project 1 and app B for project
2.
http://yrl.hostname.com/djangoproject1/appA/
http://yrl.hos
Why not add a custom clean_fieldname method to your class? Perhaps you
could dig into the original BaseModelForm and see how it constructs
validation, and override whatever is needed.
I'm on my phone atm, so I'll let you do the footwork alone, at least for now.
Cheers,
AT
On 7/19/11, br wrote:
Are you using a context processor to pass MEDIA_URL to the template?
How are you serving your static files? Have you setup your server
correctly, or configured django to serve them?
Finally, please post in English so that everyone can understand your
question, not only for the sake of helping, bu
Try use ../ in CSS files
If you are using one CSS by app. Or /static/ if you are using just one CSS
for all apps
:D
On Tue, Jul 19, 2011 at 3:29 AM, Anoop Thomas Mathew wrote:
> Hi,
>
> Depends on how you configured STATIC_URL in settings. If / is there in the
> STATIC_URL, then no need to add
Hi all, I've customized edit_inline.html for my inline section. I
need parent model's id/pk in the inline template. How can I get it? Is there
any way to reach it?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send emai
E ae galera!
Estou tentando carregar um css para uma página, mas no caminho não
estou acertando.
Como vejo qual é a minha pasta root?
Por exemplo estou tentando desta duas formas:
1 -
onde MEDIA_URL = '/media/' e
MEDIA_ROOT = os.path.join(PROJECT_ROOT_PATH, 'media')
e 2 -
onde a pasta "cida" s
Hello, guys
I just wanted to share: Setting up django + flup + fcgi + nginx on windows
couldn't be any easier. Talk about "it just works"!!
Honestly, it took me about 5 minutes to set everything up, including
downloading the files.
I merged the suggested .conf file from
https://code.djangoprojec
here is my problem..
After trying to run on localhost/hello/ through lynx I get a 500. This
is what htttpd error_log file prints out.
I am not using socks, i am using tcp host port 3303.
[Tue Jul 19 13:23:16 2011] [error] [client 127.0.0.1] (13)Permission
denied: FastCGI: failed to connect to se
here is my problem..
After trying to run on localhost/hello/ through lynx I get a 500. This
is what htttpd error_log file prints out.
I am not using socks, i am using tcp host port 3303.
[Tue Jul 19 13:23:16 2011] [error] [client 127.0.0.1] (13)Permission
denied: FastCGI: failed to connect to se
Hello, everyone
Assume the following models (dpaste.com [1]):
class Account(models.Model):
"""
Account model for categorizing entries from each SAP import,
and eventually sorting, grouping, filtering data.
"""
code = models.CharField(max_length=255, primary_key=True)
gro
Thanks Tom
settings.DEBUG was True, now False and all well
Thanks again
Thanos
trades done 75 in 3640.7334
trades done 751000 in 3645.2171
trades done 751812 in 3649.1547
(6711, 6732, 751812)
On Jul 19, 11:56 am, Tom Evans wrote:
> On Tue, Jul 19, 2011 at 4:33 PM, t
Ok, I just tried with the dev version of OpenLayers and it just works!
The problem comes from openlayers not interpreting correctly
GeoDjango's WKT syntax
more here: http://trac.osgeo.org/openlayers/ticket/2670
My workaround is the following:
- checkout a dev version of openlayers
- build it and
On Tue, Jul 19, 2011 at 5:05 PM, Rick Beacham wrote:
> thanks for the info. I corrected the this but i'm still having issues.
>
My crystal ball is out of order, could you specify the issues please.
Cheers
Tom
--
You received this message because you are subscribed to the Google Groups
"Djan
thanks for the info. I corrected the this but i'm still having issues.
On Fri, Jul 15, 2011 at 2:35 PM, ionic drive wrote:
> Hello Rick,
>
> Address already in use, tells you that on 127.0.0.1 specific port 8000
> already a process is running. I guess you have your Apache already
> running the
On Tue, Jul 19, 2011 at 4:33 PM, thanos wrote:
> os: win32
> db: oracle 10
> django: 1.3
> python: 2.7
>
>
> While inserting around 750K of records I get the following error
>
settings.DEBUG is True or False?
If True, it will store a log of every query and statistics about that
query in django.d
Hi all
I recently upgraded one of my apps to the next iteration. This used a
third party library, which started spewing out DeprecationWarning
messages when I deployed it to the test site. None of these warnings
appeared when I was developing, and I was wondering if there was a
reason why. The onl
Hi Shawn,
I've pasted the traceback below, I need to write some more tests to
give you better information.
Andrew
$ python manage.py test user_management
Creating test database for alias 'default'...
..F
==
FAIL: test_user_added
On Tue, Jul 19, 2011 at 1:13 AM, Andre Terra wrote:
> Marc,
>
> First of all, thank you for your insights. I'll try to clarify things as
> best as I can.
>
> On Mon, Jul 18, 2011 at 7:21 PM, Marc Aymerich wrote:
>
>>
>>
>> On Mon, Jul 18, 2011 at 10:54 PM, Andre Terra wrote:
>>
>>> Hello, django-
os: win32
db: oracle 10
django: 1.3
python: 2.7
While inserting around 750K of records I get the following error
trades done 661000 in 4007.3089
trades done 662000 in 4011.9012
Traceback (most recent call last):
File "manage.py", line 14, in
execute_manager(settings)
File "c:\
Hello, today I'm facing a problem which coud be a Geodjango/OpenLayer
or Django.
How to reproduce:
* in your model create a class:
from django.contrib.gis.db import models
class Track(models.Model):
track = models.MultiPointField(srid=4326)
* in your admin.py add:
admin.site.register(Trac
OK I managed to do that - I can upload utf8 files now.
But after uploading it i can't see file form field to change file:/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/
I use shared server so I think I have no access to apache settings. My
language is set to 'pl' right now.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/V
Le 19 juil. 2011 à 16:32, galgal a écrit :
> How can I get rid of error when uploading files with utf8 name?
> I can't find any solution:/
Hi,
There's nothing to do except make sure your LANG is set to something such as
en_US.UTF-8.
If you are using apache, check you /etc/apache2/envvars
Rega
How can I get rid of error when uploading files with utf8 name?
I can't find any solution:/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/MbHzssKnwOgJ.
To
Thanks for all the replies.
1. I did plan to have a dynamic homepage; its most complex section
will be to display the most recent ten additions to the articles
table. It sounds like I can just create a views directory inside my
site directory and use that. I was hesitant to do this simply because
Glad you got it figured out, after all!
Unfortunately, the django book is indeed lacking a serious update. The
official docs are still the go-to place for learning how to use django.
Users in this list have been active in writing new pages to the official
Wiki, but there's also a huge void in ter
On Jul 19, 8:33 am, bkline wrote:
> Thanks for the tip, Andre. I'll keep digging and see if I can
> extricate myself from this mess.
Bingo! That was the problem. After clearing out the offending copied
admin templates I was able to restore the CSRF code and I'm back on
the road again.
Thanks
On Mon, Jul 18, 2011 at 10:16 PM, Mike Dewhirst wrote:
> On 19/07/2011 9:13am, Andre Terra wrote:
>
>>
>> The problem is I'm supposed to have millions of entries; all with the same
>> date, thousands for the same Account, hundreds with the same description and
>> perhaps dozens with the same value
On Jul 18, 5:25 pm, Andre Terra wrote:
> Perhaps you have a replica of the old admin templates on your
> project's folder which might be overriding the files shipped with
> core, so take a look at that first.
This looks like a very useful clue. I set this up years ago to handle
my company's fin
On Jul 19, 1:13 am, Andre Terra wrote:
> Like I said, installing python-django isn't canonical, but no body said it's
> inherently wrong.
Actually, I just paid a visit to Django's installation guide [1],
which advises installing Django using the package management system of
your OS distro, as th
On 19/07/11 11:08, NISA BALAKRISHNAN wrote:
how to add url names to the following entry in urls.py.
( r'^all/synchro/download/file/', "get_all_data_download" )
Use the url function [1]
url( r'^all/synchro/download/file/', "get_all_data_download",
name="get_all_data_download" )
Alasdair
[1
I remember there is a app in django which is called databrowse.and this is
a django contrib app.It just can satify your needs .try that.
2011/7/19 Andre Lopes
> Hi,
>
> I'm new to Django. I'm in the process of test the features of Django
> to move a site from PHP to Python/Django.
>
> I have
how to add url names to the following entry in urls.py.
( r'^all/synchro/download/file/', "get_all_data_download" )
--
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 unsubscri
Hi,
I'm new to Django. I'm in the process of test the features of Django
to move a site from PHP to Python/Django.
I have a database view that is the result of many joints between
tables, I only do SELECTs to this view, the data is inserted via a
Script that will populate the various tables. I on
On 19/07/2011 1:49pm, Alex Hall wrote:
Hello all,
I was on this list a few months ago, but was unable to get a
django-friendly web host. I am now helping with a site on Bluehost,
which does support django, and I am hoping to be given permission by
the guy in charge to use django instead of php fo
On Tue, Jul 19, 2011 at 9:19 AM, Alex Hall wrote:
>
> 1. This must be glaringly obvious, but how do I use django to load my
> homepage (index.html in the public_html root)? I understand about
> views and url matching, but there is no views.py in the main directory
> and I am not sure if I am supp
On Tuesday, 19 July 2011 04:49:00 UTC+1, Alex wrote:
>
> Hello all,
> I was on this list a few months ago, but was unable to get a
> django-friendly web host. I am now helping with a site on Bluehost,
> which does support django, and I am hoping to be given permission by
> the guy in charge to use
52 matches
Mail list logo