Hello all,
I've been working through an issue with my django project. The issue
is I've got one project, which will retrieve data for users of
different clients. I need to know 'from where' a viewer is coming from
(request.path [my original solution]). I've been looking at a number
of different op
On Thu, Jul 1, 2010 at 1:36 PM, todd wrote:
>
> I've been working through an issue with my django project. The issue
> is I've got one project, which will retrieve data for users of
> different clients. I need to know 'from where' a viewer is coming from
> (request.path [my original solution]). I
Hi,
Sorry if this has been asked before, but i only seem to be finding
bit's and pieces for what i am after.
I have a simple website that needs to be available in English and
French.
I am using locale-url so all pages can have an independent url ( e.g.
en/page and fr/page)
There is a locale fol
I have an extranet for staff and known partners. It has absolutely no
public content. I've installed SSL so it should be secure, but I also
heard that SSL can have a big impact on the server.
While login and password changes need to be secure, the content itself
is not particularly sensitive. But
You dont seem to be closing your input tags, add > to the end of them
On Jul 1, 4:47 am, Gene wrote:
> When I put a form into my template it comes back blank. Does anyone
> know why?
>
> what is in my template
>
>
>
>
>
>
>
>
> what I get in my browser
>
>
--
You received this mes
On Wed, Jun 30, 2010 at 9:01 PM, thusjanthan wrote:
> Hi,
>
> I did a query on an object using their "non" primary keys such that:
>
> a = Topic.objects.filter(topic='Politics')
> topic is not a primary key. suppose topicID is primary key.
>
> When I run:
>
> a.delete()
>
> the SQL that is execute
Hi!
I'm trying to create app router but when I put this row to my
settings.py, I'll get this error traceback:
Traceback (most recent call last):
File "/home/django/pythonenv/django/bin/django-admin.py", line 5, in
management.execute_from_command_line()
File "/home/django/pythonenv/django
Den 01/07/2010 kl. 11.02 skrev ALJ:
> I have an extranet for staff and known partners. It has absolutely no
> public content. I've installed SSL so it should be secure, but I also
> heard that SSL can have a big impact on the server.
Just measure it instead of guessing. Enable system monitoring o
On Jul 1, 10:51 am, dzonny wrote:
> Hi!
>
> I'm trying to create app router but when I put this row to my
> settings.py, I'll get this error traceback:
>
>
> django.core.exceptions.ImproperlyConfigured: Error importing database
> router MyRouter: "cannot import name connection"
>
> Is there anybo
Hi Erik,
Thanks for the advice. I'll certainly have a look at the servers.
I just wanted to know really whether it was an "all or none" situation
with SSL. If it was possible blend secure and non secure connections.
ALJ
On Jul 1, 11:13 am, Erik Cederstrand wrote:
> Den 01/07/2010 kl. 11.02 skr
We have a Django solution that blends both SSL and none SSL. We did it
by creating a decorator for views that adds an attribute to the view
function and then some middleware that ensures these views are always
server over SSL (with a permanent redirect to the SSL equivalent if
necessary). We also r
It's a very common pattern to use SSL for login and private profile
details and then have the cookie passed over an unencrypted channel
for the rest of the site.
I have implemented an approach where nginx handles all the SSL and
proxies requests to apache (which directly serves non-SSL requests).
On 1 juil, 10:18, grimmus wrote:
> Hi,
>
> Sorry if this has been asked before, but i only seem to be finding
> bit's and pieces for what i am after.
>
> I have a simple website that needs to be available in English and
> French.
>
> I am using locale-url so all pages can have an independent url
We are having an issue where valid model objects are returning an
apache 404 error. Often times, if you hit refresh in the browser a few
times, the object is returned with the same URL.
We are using Django 1.2.1
--
You received this message because you are subscribed to the Google Groups
"Djang
On 1 juil, 02:40, nano wrote:
> Ok, so i've written my Django app on computer A with the dev server,
> and have pushed it to server B, running apache (implemented with
> mod_wsgi). The server also has Django installed, but cannot find the
> settings for some reason.
It's probably either a pythonp
On 30 juin, 12:16, Kenneth Gonsalves wrote:
> On Wednesday 30 June 2010 15:40:20 samie wrote:
>
> > > Everything or almost.
>
> > i dont have time i need to start development within a month..
>
> > plz tell me all those crucial topics that i should learn
>
> 1. python
> 2. css
> 3. html
> 4. ja
When you say "an apache 404 error" do you mean a non-Django styled
one? If so, I think there's something wrong with your apache
configuration and not your Django app. What mechanism are you using to
serve the application? I have seen issues like with this mod_wsgi when
the reload mechanism isn't tr
On 30 juin, 12:10, samie wrote:
> On Jun 30, 1:58 pm, bruno desthuilliers
>
> wrote:
> > On 29 juin, 12:41, samie wrote:
>
> > > 1 more query..
>
> > > what are important that i shld. learn in python and in django to
> > > develop my cms..
>
> > Everything or almost.
>
> i dont have time i need
Actually, we are getting our Django 404 page. Sorry to be unclear on
that. The URLs appears as 404 in the access logs.
We are actually using fast_cgi per our system administrator and
wondered if switching to mod_wsgi might help solve the problem, but it
looks like you had the issue with mod_wsgi!
Thanks for the reply.
I settled on django-modeltranslation, it's easy to install, well
documented and fits into the admin area.
Thanks again.
On Jul 1, 3:46 pm, bruno desthuilliers
wrote:
> On 1 juil, 10:18, grimmus wrote:
>
>
>
> > Hi,
>
> > Sorry if this has been asked before, but i only see
Felippe, Thank you for our feedback, I've posted this question over to
the group you mentioned a couple replies ago, still waiting approval
from the moderators but if you feel like continuing this I'd
appreciate it. It might be helpful to others in the future.
Malcom, I briefly looked over the si
Hello all,
I am trying to leverage the Admin site by adding some urls in the
admin class.
Eg.
class Orders(admin.ModelAdmin):
def changelist_view(self,request,customer_id=None):
pass
#set up view for order list based on customer_id by adding
filter to queryset
def get_urls
Hello Django User group...
I am looking on the site for how to post a job opening to your
community...and I apologize in advance if I am not doing the right.
We are looking for 1 or 2 local (NY Metro area - preferably Long
Island) Django developers to work with me on a new audible Tweet
platform
Hi all,
I have a problem getting the correct translation using gettext in the
following situation:
I have a view which calls a custom function to send an email. This
functions takes three arguments
- subject of the email (string)
- the language of the email
- the template to render the conte
Does it happen when running the development server? If so, you get
a lot more debugging info right up front (access to variables in each
stack from, for instance). If it's still not clear you can use the trace
as a guide as to where to put a pdb.set_trace() (possibly in an if that
makes it only t
On Thu, Jul 1, 2010 at 2:33 PM, Daniel Baron wrote:
> Hi all,
>
> I have a problem getting the correct translation using gettext in the
> following situation:
>
> I have a view which calls a custom function to send an email. This functions
> takes three arguments
> - subject of the email (string)
Let's say I have some models that look like:
class Emotion(models.Model):
mood = CharField(unique=True)
class Person(models.Model):
emotions = ManyToManyField(Emotion)
name = CharField()
angry = Emotion(mood='angry')
angry.save()
sad = Emotion(mood='sad')
sad.save()
bob = Person(nam
Hi
I need to let the admin change settings in the admin interface.
Settings could be tax_rate, admin email, site description...
The straight forward approach is to have a model of key/value pairs in the
db.
The key/value pairs could be cached in request.settings on the first access
like request.us
It only happens in our production environment. We have a stage
environment, which is a mirror of production, that does not have this
behavior and it does not happen on our development or local
environments. The trace is a good idea to try to see more
information.
On Jul 1, 9:28 am, Bill Freeman
On Thu, Jul 1, 2010 at 3:41 PM, vjimw wrote:
> It only happens in our production environment. We have a stage
> environment, which is a mirror of production, that does not have this
> behavior and it does not happen on our development or local
> environments. The trace is a good idea to try to se
Hi,
I am using a postgres database and DJango. I have a http url in my
database which contains some special characters, but a table query
returns the result successfully.
select http_url from mytable limit 1;
http_url
http://östrogenfrei.d
No, the database is pretty standard (mysql 5.1.37-community). This is
an 'in-house' tool and we have about 15 consistent users. They hit is
pretty heavily and notice this issue during that time, but it also
pops up throughout the day. It does seem to be "fixed," albeit
temporarily, after we restart
Hi!
I'm trying to add rows to database after sync, but I need to do it
after *all* of the apps has been synced. Since my after sync function
traverses all these apps and builds interesting information to the
database.
While post_syncdb http://docs.djangoproject.com/en/dev/ref/signals/#post-syncdb
On Jul 1, 3:37 pm, pablo platt wrote:
> Hi
>
> I need to let the admin change settings in the admin interface.
> Settings could be tax_rate, admin email, site description...
> The straight forward approach is to have a model of key/value pairs in the
> db.
> The key/value pairs could be cached in
If you want rapid, cross-browser facilities, nice and friendly
interfaces and pain-less javascript develop, you must consider learn
and use a js library like jQuery
Instead to develop your cms from scratch consider to use or reuse
http://www.django-cms.org/
Hope this help you
regards
julio cesar
ChangeList.get_query_set in django/contrib/admin/views/main.py
On ma, 2010-06-28 at 11:41 +0200, Massimiliano della Rovere wrote:
> Yes that's my idea.
> Can you tell me which class/method in the admin files is responsible
> for the search engine so that I can extend it?
>
> On Mon, Jun 28, 2010
I can't access www.djangoproject.com from Buenos Aires, Argentina.
Firefox says: "The connection has timed out"
Is anyone else having problems?
--
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...@go
Works fine for me.
On Jul 1, 2010, at 12:40 PM, FC wrote:
I can't access www.djangoproject.com from Buenos Aires, Argentina.
Firefox says: "The connection has timed out"
Is anyone else having problems?
--
You received this message because you are subscribed to the Google
Groups "Django us
Ok, thanks. sorry for my rather dumbed down language- by saying that
django 'knew' about the project i was implying that perhaps some
change was made in some configuration file in the django library, but
as thats not the case, moot point.
but again, thanks, ive been able to get it working.
On Jul
On Jul 1, 6:40 pm, FC wrote:
> I can't accesswww.djangoproject.comfrom Buenos Aires, Argentina.
> Firefox says: "The connection has timed out"
>
> Is anyone else having problems?
http://downforeveryoneorjustme.com/www.djangoproject.com
--
DR.
--
You received this message because you are subscr
Sao Paulo, Brazil ok.
On Thu, Jul 1, 2010 at 2:42 PM, Rob Broadhead wrote:
> Works fine for me.
>
> On Jul 1, 2010, at 12:40 PM, FC wrote:
>
> I can't access www.djangoproject.com from Buenos Aires, Argentina.
> Firefox says: "The connection has timed out"
>
> Is anyone else having problems?
>
>
On Jul 1, 3:31 pm, Doug Warren wrote:
> Let's say I have some models that look like:
>
> class Emotion(models.Model):
> mood = CharField(unique=True)
>
> class Person(models.Model):
> emotions = ManyToManyField(Emotion)
> name = CharField()
>
> angry = Emotion(mood='angry')
> angry.sav
Buenos Aires, Arnet and Fibertel (ISPs) OK.
Iván
On Thu, Jul 1, 2010 at 3:09 PM, Felippe Bueno wrote:
> Sao Paulo, Brazil ok.
>
>
> On Thu, Jul 1, 2010 at 2:42 PM, Rob Broadhead
> wrote:
>
>> Works fine for me.
>>
>> On Jul 1, 2010, at 12:40 PM, FC wrote:
>>
>> I can't access www.djangoproje
Hi all,
Am 01.07.2010 19:40, schrieb FC:
I can't access www.djangoproject.com from Buenos Aires, Argentina.
Firefox says: "The connection has timed out"
Is anyone else having problems?
I experience the same when I use Firefox under Ubuntu 10.04 (Lucid Lynx).
Using Firefox under Windows or Epi
What's in the database probably isn't legal UTF-8. It is easily possible
to have a sequence of characters in some other encoding which only
results in the wrong characters if treated as UTF-8, but it is also possible
to violate the UTF-8 structure with such a sequence. PostgreSQL, if
set for UTF-
Thank you both for your replies. I think I'll go for using bleach to
clean on input, and mark as safe on output.
I must say, however, that I'm surprised at how hard it is to find
information about this topic. I would have thought that allowing some,
but not all, html was a relatively common task,
On Jul 1, 3:41 pm, Carsten Fuchs wrote:
> Hi all,
>
> Am 01.07.2010 19:40, schrieb FC:
>
> > I can't accesswww.djangoproject.comfrom Buenos Aires, Argentina.
> > Firefox says: "The connection has timed out"
>
> > Is anyone else having problems?
>
> I experience the same when I use Firefox under Ub
I may be just living under a rock, but I don't know how to use
pdb.set_trace() when not using the development server. If you do this
successfully, please let me know.
What I have done is append "print"ings to a file, or configure extra
logger outputs. Under mod_wsgi I get some logging output in
mood = Emotion.objects.get(mood='thoughtful')
The above raises DoesNotExist if the emotion hasn't been defined. If
you want to raise a different one, then catch this one and raise your
own. Then use mood in your query on the person's emotions.
On Thu, Jul 1, 2010 at 10:31 AM, Doug Warren wrote
You might have a poisoned DNS cache. Since this is Windows, you could
try rebooting, but there could be other DNS caches between you and a
good name server.
On Thu, Jul 1, 2010 at 3:37 PM, FC wrote:
> On Jul 1, 3:41 pm, Carsten Fuchs wrote:
>> Hi all,
>>
>> Am 01.07.2010 19:40, schrieb FC:
>>
>
Hi all,
I am using django-simple-captcha, it works fine on my dev environment
(windows). But after i deployed to linux server, all other views/pages
are working fine. But when i request /captcha/image/{{imagekey}}/ i
got server internal error 500.
Something I missed to configure?
Thanks a lot
$ ping www.djangoproject.com
PING www.djangoproject.com (64.207.133.18) 56(84) bytes of data.
Can you confirm this is ok?
I get no response but at least it resolves to something.
On Jul 1, 4:50 pm, Bill Freeman wrote:
> You might have a poisoned DNS cache. Since this is Windows, you could
> tr
On 07/01/2010 02:37 PM, FC wrote:
I already used Wireshark to see what's going on with the
unique combination "Firefox under Lucid Lynx accessing
djangoproject.com": the djangoproject.com host simply
doesn't respond to the initial HTTP GET request (or the
reply never gets through). Not sure what
Thanks for that Euan.
Steven, you say you have login on SSL and then have the cookie passed
over unencrypted channel for the rest of the site. Is there any risk
with this or mitigating steps that should be taken?
(Sorry ... don't have my head around it)
ALJ
On 1 July, 15:20, steven314 wrote:
>
Hi,
I'm trying to use django.test.TestCase class in my project's directory
"tests", e.g.
myapp/models.py
myapp/...
tests/sometest.py
If I use django TestCase inside sometest.py I get:
Traceback (most recent call last):
File "\django\django\test\testcases.py", line 256, in __call__
self._p
www.djangoproject.com has address 64.207.133.18
On Thu, Jul 1, 2010 at 5:07 PM, FC wrote:
> $ ping www.djangoproject.com
> PING www.djangoproject.com (64.207.133.18) 56(84) bytes of data.
>
>
> Can you confirm this is ok?
> I get no response but at least it resolves to something.
>
> On Jul 1,
I've been following 'Writing Your First Django App. Pt. 1'
substituting my own object names in experiment.
Noticed that when I told Django to create my tables, it did so giving
all (psycopg2/postgres) fields the 'not null' setting. Easy to change
this via PgAdmin, but I'm wondering if it is possib
On Thu, Jul 1, 2010 at 4:16 PM, Barto wrote:
> I've been following 'Writing Your First Django App. Pt. 1'
> substituting my own object names in experiment.
>
> Noticed that when I told Django to create my tables, it did so giving
> all (psycopg2/postgres) fields the 'not null' setting. Easy to ch
Of course my_mail() is more complicated than my example. But I am not
touching "subject" elsewhere as in the posted lines (I am only passing
it to EmailMessage). Thus, I did not consider the rest of my_mail() to
be important.
Is there a way to check at a certain point if the the proxy object has
a
On 1 juil, 19:56, nano wrote:
> Ok, thanks. sorry for my rather dumbed down language- by saying that
> django 'knew' about the project i was implying that perhaps some
> change was made in some configuration file in the django library,
That's what I understood, but I fail to see what made you thi
On Jul 1, 8:41 pm, Carsten Fuchs wrote:
> Hi all,
>
> Am 01.07.2010 19:40, schrieb FC:
>
> > I can't accesswww.djangoproject.comfrom Buenos Aires, Argentina.
> > Firefox says: "The connection has timed out"
>
> > Is anyone else having problems?
>
> I experience the same when I use Firefox under Ub
On Jul 1, 5:52 pm, bruno desthuilliers
wrote:
> That's what I understood, but I fail to see what made you think it
> would be the case.
It was what i implied when the app ran well on the machine that I had
run the 'startproject' command on and didn't run at all on the one
that i hadn't. I though
heya,
I've trying to get my Django app to run on a Tomcat 5.x server, using
django-jython. I'm a bit of a newbie in the Java/Tomcat world though.
Firstly, I'm currently using PostgreSQL. However, to make things
easier on the target server, I was just going to use SQLite3 - the app
will only be us
Hi everyone,
I am experiencing a funny issue with the jdbc driver when trying to
run syncdb.
I've installed jython2.5.1, Django-1.2.1 and django-jython-1.1.1
1. I create a project 'mysite'...
2. change settings.py:
DATABASE_ENGINE = 'doj.backends.zxjdbc.postgresql'
DATABASE_NAME = 'mysite'
On my web pages I have labels for text fields. I want user to be able
to personalize the labels.
Example :
default label: Employee, alternative is that user can choose -
Associate or Staff Member.
Depending on which label an user chooses, all screens should show that
label for that user. Other us
Hi Django Users
I have been looking to make some of my views secured by SSL, i have
made a certificate for testing.
For the views which require https i rewrite the url and redirect using
a decorator.
In theory this should redirect and nginx will server the views through https.
Instead what i fin
On Fri, Jul 2, 2010 at 1:22 AM, weiwei wrote:
>
> I am using django-simple-captcha, it works fine on my dev environment
> (windows). But after i deployed to linux server, all other views/pages
> are working fine. But when i request /captcha/image/{{imagekey}}/ i
> got server internal error 500.
On Thu, Jul 1, 2010 at 4:41 PM, Jari Pennanen wrote:
> Hi,
>
> I'm trying to use django.test.TestCase class in my project's directory
> "tests", e.g.
>
> myapp/models.py
> myapp/...
> tests/sometest.py
>
> If I use django TestCase inside sometest.py I get:
>
> Traceback (most recent call last):
>
Hi,
Has anyone here built a facebook canvas application using Django 1.*
and got it working on Google App Engine?
If so, can you give pointers on how I can learn this?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send
On Jun 30, 9:38 pm, kakarukeys wrote:
> I tried to deploy a simple web app I wrote in Django and ran into
> problem with user authentication.
>
> On production server, the following steps didn't work like expected
> (on development server).
>
> "log in using a test user account,
> access a restric
I'm new to Django. I've done one modest, search only, public site
prior to my current project. I'm also new to python. While I'm new to
all this, I've been doing web dev. for 14 years.
The site I'm working on now is a low-user intranet for a local
restaurant chain. I was able to conceptualize the
Hi
I am wondering whether there is any implement of event bus (a
centralized control of sub/dist event via ajax sync).
Google use this design pattern in its ad-words by java. Does django
have similar solutions ?
Cheers
Homer
--
You received this message because you are subscribed to the Google
I found model inheritance may be a better solution: combine may model
into one (Similar to views combining tables in database)
Quote:
Model inheritance in Django works almost identically to the way normal
class inheritance works in Python. The only decision you have to make
is whether you want t
73 matches
Mail list logo