Re: how to make https work in django REST framework

2022-09-13 Thread sham khan
Hi Zhenwu, May you share the details of how you got this working? Regards, Shamim On Friday, February 14, 2014 at 2:47:43 AM UTC+5:30 zhen...@gmail.com wrote: > > Thanks all for your help. Finally we figured out how to do it from the doc > link Kirby provided. Really appreciated your help. >

Re: Work in django!!

2020-06-17 Thread Luqman Lawal
ok On Wed, Jun 17, 2020, 05:41 carlos wrote: > geodjango! > > On Tue, Jun 16, 2020 at 10:35 PM RANGA BHARATH JINKA < > bharathjink...@gmail.com> wrote: > >> Hi, You can use the folium package. >> >> On Wed, Jun 17, 2020 at 9:28 AM meera gangani >> wrote: >> >>> Hello , >>> >>>I want to

Re: Work in django!!

2020-06-16 Thread carlos
geodjango! On Tue, Jun 16, 2020 at 10:35 PM RANGA BHARATH JINKA < bharathjink...@gmail.com> wrote: > Hi, You can use the folium package. > > On Wed, Jun 17, 2020 at 9:28 AM meera gangani > wrote: > >> Hello , >> >>I want to work with maps in django, which libraries i installed! >> >>

Re: Work in django!!

2020-06-16 Thread RANGA BHARATH JINKA
Hi, You can use the folium package. On Wed, Jun 17, 2020 at 9:28 AM meera gangani wrote: > Hello , > >I want to work with maps in django, which libraries i installed! > > Thank to you in advance > -Meera > > > -- > You received this message because you are subscribed to the Google

Work in django!!

2020-06-16 Thread meera gangani
Hello , I want to work with maps in django, which libraries i installed! Thank to you in advance -Meera -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: how to make https work in django REST framework on runserver port

2018-08-29 Thread Kasper Laudrup
Hi Rupam, On 29/08/2018 17.44, Rupam Hazra wrote: I want to do on production but how . could you elaborate me because i am new in python You shouldn't be using the development server in production. That is quite clearly stated in the documentation for good reasons. You could set up a web

Re: how to make https work in django REST framework on runserver port

2018-08-29 Thread Rupam Hazra
@jason, I want to do on production but how . could you elaborate me because i am new in python On Wednesday, 29 August 2018 17:09:34 UTC+5:30, Jason wrote: > > for local development, why do you need https? for staging and production, > you should be using apache with mod_wsgi or nginx with

Re: how to make https work in django REST framework on runserver port

2018-08-29 Thread Jason
for local development, why do you need https? for staging and production, you should be using apache with mod_wsgi or nginx with uwsgi/gunicorn On Wednesday, August 29, 2018 at 7:16:15 AM UTC-4, Rupam Hazra wrote: > > > Hi, i am working django rest service using runserver on different port on

how to make https work in django REST framework on runserver port

2018-08-29 Thread Rupam Hazra
Hi, i am working django rest service using runserver on different port on http but i want to use the https service. Please help. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from

How do I set up an AngularJS-driven form to work with Django password reset functionality?

2018-03-13 Thread Tom Tanner
I'm unsure how I'd apply it to my situation. My questions is how would I set up urls.py and views.py to handle this? Here's the example code on StackOverflow: https://stackoverflow.com/questions/49265097/how-do-i-set-up-an-angularjs-driven-form-to-work-with-django-password-reset-func -- Yo

Re: unique_together does not work in django 2.0

2018-01-19 Thread James Bennett
You've indented the 'Meta' declaration too much, and Python thinks it's part of the '__str__()' method of your class. Un-indent it one level. On Thu, Jan 18, 2018 at 4:28 PM, FernandoJMM wrote: > Hello, > I have the following class: > >

Re: unique_together does not work in django 2.0

2018-01-19 Thread FernandoJMM
Hello, Problem solved. For it to work I have to put the META class between the silo class and the method. Thank you El viernes, 19 de enero de 2018, 12:53:28 (UTC+1), Jason escribió: > > To be clear, you started with an empty database and the duplicate values > exist after adding data? > --

Re: unique_together does not work in django 2.0

2018-01-19 Thread Jason
To be clear, you started with an empty database and the duplicate values exist after adding data? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

unique_together does not work in django 2.0

2018-01-18 Thread FernandoJMM
Hello, I have the following class: == class Silo(models.Model): nave = models.ForeignKey(Nave, on_delete=models.CASCADE) codSil = models.CharField( 'Código Silo', db_index=True, max_length=2, default='01') notas = models.TextField(null=True,

instructions to make DATE PICKER work in django

2015-12-07 Thread Sid
Hi all, > > *Problem:* > I have a data set which shows on web page using django and another webpage > consists of datepicker > > > > *code:(views.py)* > def about(request): > #change the

Re: Entry.objects.filter(pub_date__month=7) doesn't work with Django 1.8

2015-09-22 Thread Bill Freeman
What does the following say? Entry.objects.filter(pub_date__year=2015)[0].pub_date.month If it says 7, then its time to delve into the generated SQL for the month query. On Tue, Sep 22, 2015 at 10:52 AM, lxm wrote: > I create a class named Entry,like this: > >> class

Entry.objects.filter(pub_date__month=7) doesn't work with Django 1.8

2015-09-22 Thread lxm
I create a class named Entry,like this: > class Entry(models.Model): pub_date = models.DateTimeField() > this data table named Entry have one record: - pub_date = '2015-7-14 xx:xx:xx' then,I excute 'Entry.objects.filter(pub_date__year=2015)' in shell,this will return right result,

Re: how to make https work in django REST framework

2014-02-13 Thread zhenwu he
Thanks all for your help. Finally we figured out how to do it from the doc link Kirby provided. Really appreciated your help. thanks. /zhenwu On Thursday, February 13, 2014 11:20:53 AM UTC-8, zhenwu he wrote: > > > Thank you! working on it. thanks. > > /zhenwu > > On Thursday, February 13,

Re: how to make https work in django REST framework

2014-02-13 Thread zhenwu he
Thank you! working on it. thanks. /zhenwu On Thursday, February 13, 2014 11:06:55 AM UTC-8, C. Kirby wrote: > > Use the django deployment docs for a howto: > https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/ > > On Thursday, February 13, 2014 12:58:53 PM UTC-6, zhenwu he wrote: >>

Re: how to make https work in django REST framework

2014-02-13 Thread C. Kirby
Use the django deployment docs for a howto: https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/ On Thursday, February 13, 2014 12:58:53 PM UTC-6, zhenwu he wrote: > > > Thanks Kirby. > > You meant merge django into apache? ok, let me see what I can do. thanks. > > /zhenwu > > On

Re: how to make https work in django REST framework

2014-02-13 Thread zhenwu he
Thanks Kirby. You meant merge django into apache? ok, let me see what I can do. thanks. /zhenwu On Thursday, February 13, 2014 10:18:03 AM UTC-8, C. Kirby wrote: > > Zhenwu, > > You only mentioned it in passing in the last post, but did you say you are > running django in production via the

Re: how to make https work in django REST framework

2014-02-13 Thread C. Kirby
Zhenwu, You only mentioned it in passing in the last post, but did you say you are running django in production via the manage.py runserver command? You _really_ shouldn't use runserver in production. You should be using a webserver (I guess apache in your case) and wsgi to serve up django.

Re: how to make https work in django REST framework

2014-02-13 Thread zhenwu he
Hi, Eric: After thinking further, I am a little lost. :( Here is my understanding. 1, I need have django run server running, for example, listen to port 1234 2, I enable https on apache, which is listening to 443. then I redirect all connections to 443 to port 1234 using config you provided.

Re: how to make https work in django REST framework

2014-02-13 Thread zhenwu he
Thanks Luca. Yeah, I have https setup, but that is for UI, not for REST, the REST is purely handled by django run server port. Based on Eric's comment, it seems that I need change user to send request to apache using https, and then I need config redirect on apache to django. then django will

Re: how to make https work in django REST framework

2014-02-13 Thread zhenwu he
Thanks Eric for your help. Basically, user has to send REST API to apache using https, and then apache redirect this call to django using http. Should I config anything on django besides configuration redirect on apache. Based on what you are saying, I do not need config anything on django

Re: how to make https work in django REST framework

2014-02-13 Thread Luca Corti
Il 2014-02-13 06:16 zhenwu he ha scritto: Thanks for your help, Luca. Could you elaborate a little bit? I am kind of new to this kind of thing. What I am doing is that, I am using django to redirect all url calls to python API to handle something and then return as response. you want me to

Re: how to make https work in django REST framework

2014-02-13 Thread Erik Cederstrand
Den 13/02/2014 kl. 06.16 skrev zhenwu he : > > Thanks for your help, Luca. > > Could you elaborate a little bit? I am kind of new to this kind of thing. > What I am doing is that, I am using django to redirect all url calls to > python API to handle something and then

Re: how to make https work in django REST framework

2014-02-12 Thread zhenwu he
Thanks for your help, Luca. Could you elaborate a little bit? I am kind of new to this kind of thing. What I am doing is that, I am using django to redirect all url calls to python API to handle something and then return as response. you want me to redirect this http call to where? and where

Re: how to make https work in django REST framework

2014-02-11 Thread Luca Corti
On 12/feb/2014, at 00:36, zhenwu he wrote: > Currently I am using Python Django as my REST framework and it could take all > the calls through http. If I want to switch from http to https, what should I > do to make this work? Just issue a redirect to the equivalent HTTPS

how to make https work in django REST framework

2014-02-11 Thread zhenwu he
Hi, There: Currently I am using Python Django as my REST framework and it could take all the calls through http. If I want to switch from http to https, what should I do to make this work? thanks in advance. /zhenwu -- You received this message because you are subscribed to the Google

Re: how start work in django after installation in ubuntu

2013-10-03 Thread Vibhu Rishi
First of all, i suggest you start working in django in a virtualenv. This helps as you can have your own virtual env for installing additional django modules. if you want to host and check it on the web, i suggest you checkout this page :

Re: how start work in django after installation in ubuntu

2013-10-03 Thread Nigel Legg
work through the tutorial. Cheers, Nigel 07914 740972 On 3 October 2013 13:28, jasvir sandhu wrote: > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving

how start work in django after installation in ubuntu

2013-10-03 Thread jasvir sandhu
-- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com.

Re: Need help configuring Apache production server on Raspberry PI to work with Django.

2013-01-11 Thread Nikolas Stevenson-Molnar
7equiv...@gmail.com > > wrote: > > When you say "From there it should just be configuration." Do > you mean either (1) Configuring mod-wsgi to work with apache, > or (2) Configuring mod_wsgi to work with Django. > > The errors wher

Re: Need help configuring Apache production server on Raspberry PI to work with Django.

2013-01-11 Thread 7equivalents
t;> When you say "From there it should just be configuration." Do you mean >> either (1) Configuring mod-wsgi to work with apache, or (2) Configuring >> mod_wsgi to work with Django. >> >> The errors where involved with my first attempt at installing mod-wsgi >

Re: Need help configuring Apache production server on Raspberry PI to work with Django.

2013-01-10 Thread Bill Freeman
rom there it should just be configuration." Do you mean > either (1) Configuring mod-wsgi to work with apache, or (2) Configuring > mod_wsgi to work with Django. > > The errors where involved with my first attempt at installing mod-wsgi > according to the Django instructions, H

Re: Need help configuring Apache production server on Raspberry PI to work with Django.

2013-01-10 Thread Nikolas Stevenson-Molnar
wrote: > When you say "From there it should just be configuration." Do you mean > either (1) Configuring mod-wsgi to work with apache, or (2) > Configuring mod_wsgi to work with Django. > > The errors where involved with my first attempt at installing mod-wsgi > accordin

Re: Need help configuring Apache production server on Raspberry PI to work with Django.

2013-01-10 Thread 7equivalents
When you say "From there it should just be configuration." Do you mean either (1) Configuring mod-wsgi to work with apache, or (2) Configuring mod_wsgi to work with Django. The errors where involved with my first attempt at installing mod-wsgi according to the Django instructions, H

Re: Need help configuring Apache production server on Raspberry PI to work with Django.

2013-01-10 Thread Nikolas Stevenson-Molnar
wrote: > Hello, I need help configuring the Apache production server to work > with Django on a Rapberry pi. I am still new to Linux. Here is what > I've done so far. > > (1) I have successfully installed Apache on my Raspberry pi. I have > used it to serve up php webpages. > (2

Re: Need help configuring Apache production server on Raspberry PI to work with Django.

2013-01-10 Thread Nikolas Stevenson-Molnar
>From there, it should just be configuration. What errors are you seeing? _Nik On 1/10/2013 10:59 AM, 7equivale...@gmail.com wrote: > Hello, I need help configuring the Apache production server to work > with Django on a Rapberry pi. I am still new to Linux. Here is what > I've

Need help configuring Apache production server on Raspberry PI to work with Django.

2013-01-10 Thread 7equivalents
Hello, I need help configuring the Apache production server to work with Django on a Rapberry pi. I am still new to Linux. Here is what I've done so far. (1) I have successfully installed Apache on my Raspberry pi. I have used it to serve up php webpages. (2) I have successfully installed

Re: How does threading and processes work in Django

2012-11-06 Thread dwang
Cool. I didn't know about Celery. Thanks Phillip! On Friday, October 26, 2012 4:11:53 AM UTC-4, Philip wrote: > > I think what you are looking for is Celery (http://celeryproject.org/). > This handles asynchronous tasks in a clean and tidy manor meaning your > normal requests are free to return

Re: How does threading and processes work in Django

2012-10-26 Thread Philip Mountifield
I think what you are looking for is Celery (http://celeryproject.org/). This handles asynchronous tasks in a clean and tidy manor meaning your normal requests are free to return their responses while processing continues. You can check the results of tasks later on in another request. Regards

How does threading and processes work in Django

2012-10-25 Thread dwang
Hi, I'm new to Django and need some help understanding how threading works in Django. I have some data that I'd like to recompute periodically in the background and have it shared between requests. If I start a thread in one of the view functions (e.g. my_thread.start()), would Django kill

How does the multiple database concept work after django 1.2

2012-03-02 Thread Amit Sethi
Hi all , My app has started breaking after moving to django 1.3 . I don't really understand why? I am working using site framework and given model definition through app_label. The only majot change as I can see is that I use UUID Fields rather than AutoField. Now somehow i see that my app is

Re: Can't get pagination to work in django.!!!

2012-02-28 Thread Tony Kyriakides
Sorry tom! Thanks a lot mate you just made my day! On Feb 28, 5:34 pm, Tom Evans wrote: > Hi. Re-read what I said: > > > 24      {% for entry in entries %} > >            ^^^ > > > 25      {{ entry.title }} > > {{ entry.posted }} {{ entry.submitter }} >

Re: Can't get pagination to work in django.!!!

2012-02-28 Thread Tom Evans
Hi. Re-read what I said: > 24 {% for entry in entries %} ^^^ > 25 {{ entry.title }} > {{ entry.posted }} {{ entry.submitter }} > 26 {% endfor %} Compare and contrast what you are doing with 'entries' in that for loop and what the docs do with the

Re: Can't get pagination to work in django.!!!

2012-02-28 Thread Tony Kyriakides
hey tom its still not working :P it was easier for me to copy it from the docs...i still get the same error template: Entries {% for entry in entries %} {{ entry.title }} {{ entry.posted }} {{ entry.submitter }} {% endfor %} {% if entries.has_previous %} previous

Re: Can't get pagination to work in django.!!!

2012-02-28 Thread Tom Evans
On Tue, Feb 28, 2012 at 2:45 PM, Tony Kyriakides wrote: > I get this error: > > Template error > > In template /home/tony/Documents/vidupdate/templates/index.html, error > at line 24 > > Caught TypeError while rendering: 'Page' object is not iterable > 14      {% else %}

Can't get pagination to work in django.!!!

2012-02-28 Thread Tony Kyriakides
I get this error: Template error In template /home/tony/Documents/vidupdate/templates/index.html, error at line 24 Caught TypeError while rendering: 'Page' object is not iterable 14 {% else %} 15 Register 16 Login 17 {% endif %} 18 feedback 19 Contact 20 21

Re: Unable to work with Django API

2011-08-26 Thread Yves S. Garret
Yeah, I just resolved that issue. And yes, I messed up my DB setup. It works now. I didn't set it up properly for sqllite. On Aug 26, 3:06 pm, Jirka Vejrazka wrote: > Hi there, > >   your database is not set up properly - are you sure you went through > the "database

Re: Unable to work with Django API

2011-08-26 Thread Jirka Vejrazka
Hi there, your database is not set up properly - are you sure you went through the "database setup" section of the tutorial? HTH Jirka -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Unable to work with Django API

2011-08-26 Thread Yves S. Garret
Hi all, This is my issue: After I installed Django and got it somewhat working, I started down this tutorial: https://docs.djangoproject.com/en/dev/intro/tutorial01/ All was going well until I hit the part called "Playing with the API". I'm doing this in Windows 7 Enterprise.

Re: Need help getting this snippet to work in Django 1.2...

2011-06-13 Thread Micky Hulse
On Mon, Jun 13, 2011 at 9:44 AM, Micky Hulse wrote: > Ooh, great tip! That looks very useful and possibly a little more > simple/straight-forward than using a form field. Too easy! https://gist.github.com/1023327 Thanks for the help Martin and Alex, I really appreciate it!

Re: Need help getting this snippet to work in Django 1.2...

2011-06-13 Thread Micky Hulse
Hi Alex! Thanks for the reply, I really appreciate it. :) On Sun, Jun 12, 2011 at 9:01 PM, Alex Kamedov wrote: > It'll be better to use validators with IntegerField > In this case you can specify allowed year range. Ooh, great tip! That looks very useful and possibly a little

Re: Need help getting this snippet to work in Django 1.2...

2011-06-12 Thread Alex Kamedov
It'll be better to use validators with IntegerField https://docs.djangoproject.com/en/1.3/ref/models/fields/#validators https://docs.djangoproject.com/en/1.3/ref/validators/ In this case you can specify allowed year range. On Sat, Jun 11, 2011 at 9:25 AM, mhulse wrote: > Hi

Re: Need help getting this snippet to work in Django 1.2...

2011-06-10 Thread mhulse
Hi Martin! Thanks so much for the help, I really appreciate it. :) > The snippet is a form field, not a model field. Well, that would explain things! Lol. When I read this in the instructions: "Usage eg: yob = BirthYearField(label="What year were you born?")" I thought that was a model field.

Re: Need help getting this snippet to work in Django 1.2...

2011-06-10 Thread Martin
I think this is not how it works. The snippet is a form field, not a model field. Basically I think you should use an IntegerField (you just want to store a year, right?). Then somehow you need to override the widget or so and make sure that in the admin that form will be used for that

Need help getting this snippet to work in Django 1.2...

2011-06-10 Thread mhulse
I feel like this should be simple... I would like to replace this model field: date = models.DateField(_(u'Year'), unique=True) ...with this snippet: http://djangosnippets.org/snippets/508/ I have spent the last couple hours banging my head on my keyboard... During the course of my tests, at

Re: How does localization work in Django?

2011-03-23 Thread Kenneth Gonsalves
On Wed, 2011-03-23 at 16:03 +, Andre Lopes wrote: > from django.core import management > ImportError: No module named django.core this shows that manage.py cannot find django - check your paths -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox

Re: How does localization work in Django?

2011-03-23 Thread Andre Lopes
Hi, Thanks for the reply. I have installed getttext on windows. What more details do you need to get the cause of the error? I'm using Django 1.3 Best Regards, On Mar 23, 4:46 pm, Andre Terra wrote: > This has more to do with how you setup your python environment than

Re: How does localization work in Django?

2011-03-23 Thread Andre Terra
This has more to do with how you setup your python environment than with the localization/internationalization itself. I suggest using virtualenv and virtualenvwrapper to easily setup your django environment. Using virtualenv is pretty much the standard amongst developers nowadays. You can use

Re: How does localization work in Django?

2011-03-23 Thread Ramiro Morales
On Wed, Mar 23, 2011 at 1:03 PM, Andre Lopes wrote: > > But is not working, I got this error: > > [quote] >        Traceback (most recent call last): >          File "C:\Python27\Lib\site-packages\djan >        odule> >                from django.core import management >  

How does localization work in Django?

2011-03-23 Thread Andre Lopes
Hi, I have reading some topics of http://docs.djangoproject.com/en/1.3/topics/i18n/localization/ But have not understand what I need to do. First what I intend to do... I have created a new App, called "directorio", and now I need to have the capability of translate the data inside some

Re: admin delete action does not work at django trunk revision 12807

2010-03-19 Thread Karen Tracey
On Fri, Mar 19, 2010 at 4:58 PM, nitipit wrote: > about admin delete select objects > It works on Django-1.2-beta, but does not work on revision 12807 > I have to delete each object individually >_< > Yes, there's a ticket open on it:

admin delete action does not work at django trunk revision 12807

2010-03-19 Thread nitipit
about admin delete select objects It works on Django-1.2-beta, but does not work on revision 12807 I have to delete each object individually >_< -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Reverse viewname inside widget doesn't work on django 1.2?

2009-11-22 Thread Joshua Partogi
Hi all, I tried to reverse url by calling: reverse('wmd-settings-js') inside a widget as such: class MarkDownInput(forms.Textarea): class Media: js = (reverse('wmd-settings-js')) But then I would get this error from django: Exception Type: ImproperlyConfigured Exception

Re: mymodel.save() does not work in django but works in python shell

2009-05-11 Thread Karen Tracey
On Mon, May 11, 2009 at 1:22 PM, NoviceSortOf wrote: > Now get this -- if I add a 'return' to the end of the function it adds > the rows -- why is this? > This, combined with the sequence number increasing but being unable to actually see rows added, makes me think

Re: mymodel.save() does not work in django but works in python shell

2009-05-11 Thread NoviceSortOf
Thanks for your reply, I'm thinking and working outloud on the answers that follow, I've a solution sort of but remain mystified as to why and how it works. > How are you deciding it's not working? via pgAdminIII where I can see the sequence table being incremented + 1 on every django save but

Re: mymodel.save() does not work in django but works in python shell

2009-05-11 Thread Karen Tracey
On Mon, May 11, 2009 at 11:32 AM, NoviceSortOf wrote: > > > An observation I've made it that django does update the related > sequence_id table of the table but does not add a row to the table. > How are you deciding it's not working? Are you seeing errors? Does the

Re: mymodel.save() does not work in django but works in python shell

2009-05-11 Thread NoviceSortOf
An observation I've made it that django does update the related sequence_id table of the table but does not add a row to the table. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Localhost does not work with django web server but works with Tomcat

2009-03-14 Thread CG
Karen, Apologize for the late reply. Thanks for the excellent catch, it was indeed an IPv6 issue. I just had to update my hosts file on windows vista to include an entry for 127.0.0.1 and it worked! Thanks again CG On Mar 10, 10:02 pm, Karen Tracey wrote: > On Tue, Mar 10,

Re: Localhost does not work with django web server but works with Tomcat

2009-03-10 Thread Karen Tracey
On Tue, Mar 10, 2009 at 7:12 PM, CG wrote: > > Using dango 1.0.2 final on windows vista. > I have tried starting up tomcat and using http://localhost:8000 and it > shows the tomcat default page which means localhost is being resolved > correctly on the machine. >

Localhost does not work with django web server but works with Tomcat

2009-03-10 Thread CG
Using dango 1.0.2 final on windows vista. I have tried starting up tomcat and using http://localhost:8000 and it shows the tomcat default page which means localhost is being resolved correctly on the machine. Any ideas why I am not able to use http://localhost:8000 with django? I started the

Re: runserver with manage.py works but doesn't work with django-admin.py

2008-07-08 Thread Evert
> so it's odd that my new project works with "python manage.py > runserver" but gives me an error when i do "django-admin.py > runserver." how is this possible? Is it? Have a look inside manage.py: " try: import settings # Assumed to be in the same directory. except ImportError: import

runserver with manage.py works but doesn't work with django-admin.py

2008-07-07 Thread Daehee
so it's odd that my new project works with "python manage.py runserver" but gives me an error when i do "django-admin.py runserver." how is this possible? btw the error is below: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/Current/bin/

Re: Problem getting Apache/mod_Python to work with Django

2007-01-27 Thread django_user
change the database user and pwd in settings.py file of your project. On Jan 28, 12:28 am, "Julian Romero" <[EMAIL PROTECTED]> wrote: > On 1/27/07, Pramod Subramanyan <[EMAIL PROTECTED]> wrote: > > > File > > "/usr/lib/python2.4/site-packages/Django-0.95.1-py2.4.egg > >

Re: Problem getting Apache/mod_Python to work with Django

2007-01-27 Thread Julian Romero
On 1/27/07, Pramod Subramanyan <[EMAIL PROTECTED]> wrote: > > > File > "/usr/lib/python2.4/site-packages/Django-0.95.1-py2.4.egg > /django/db/backends/postgresql/base.py" > in cursor > 43. self.connection = Database.connect(conn_string) > > OperationalError at /mysite/admin/ > FATAL: role

Re: Why it doesn't work in Django

2005-11-21 Thread Adrian Holovaty
On 11/21/05, PythonistL <[EMAIL PROTECTED]> wrote: > If I download the latest development version, will be the change > already present? > Or where can I find the file in Django installation to apply the patch > by myself? The change was checked in earlier this morning; it's in the development

Re: Why it doesn't work in Django

2005-11-21 Thread PythonistL
Eugene, Thank you. If I download the latest development version, will be the change already present? Or where can I find the file in Django installation to apply the patch by myself? thank you regards, L.

Re: Why it doesn't work in Django

2005-11-20 Thread Eugene Lazutkin
I see. I've submitted a patch http://code.djangoproject.com/ticket/866. Thanks, Eugene "PythonistL" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Yes, I use XP windows > Regards, > L. > >

Re: Why it doesn't work in Django

2005-11-20 Thread PythonistL
Yes, I use XP windows Regards, L.

Re: Why it doesn't work in Django

2005-11-19 Thread Eugene Lazutkin
"PythonistL" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I also tried django.views.static.serve with the images. An image file > is found ( HTTP/1.0 200 OK) but the image is distorted( damaged). Why? Do you use Windows? Thanks, Eugene

Re: Why it doesn't work in Django

2005-11-19 Thread PythonistL
Thank you ALL for the explanation. I checked http://code.djangoproject.com/ticket/810 to try django.views.static.serve and it worked with CSS. . But I found out that in CSS file I can not use p. EntryField {... ... ... } but must use p.EntryField {... ... ... } I also tried

Re: Why it doesn't work in Django

2005-11-18 Thread David Ascher
On 11/18/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: The Web page isn't recognizing your CSS file. Django isn't intendedserve static media files -- such as CSS -- so you'll need to useanother server, such as Apache, to serve the CSS file. Alternatively,check out the django.views.static.serve,

Re: Why it doesn't work in Django

2005-11-18 Thread Bryan L. Fordham
On Fri, Nov 18, 2005 at 01:32:34PM -0800, PythonistL wrote: > But why? Where did I make a mistake? because it's trying to serve the page like it's a view. For instance, if your view is /foo/bar, go to /foo/style.css and you'll get a 404. But that's where it's trying to load it. You'll want to

Why it doesn't work in Django

2005-11-18 Thread PythonistL
I have a following problem with CSS file. My template Test.html looks like this ## TEST ONLY ### where Test.css looks like this ### body { background: #00; color: #FF; font: 10pt verdana, geneva, lucida, 'lucida grande',