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! >> >> Tha

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 Groups

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 s

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 uwsg

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 it,

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: > > == > class Silo(models.Mod

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 django-users+u

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, blan

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 f

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, 20

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 Thursday

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 ma

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 sid

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 redir

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 return as response. you

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 url from your web serv

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 Grou

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 : https://devcenter.heroku.com/articles/getting-started-with-d

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 emails from it, send an > email t

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. V

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 this

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 }} > > 26      {% endfor %} > >

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 equivale

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 %} > 15      Register > 16  

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: 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! :) Have an awesome d

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 more simple/straigh

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 Martin! Thanks so m

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 IntegerField

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 http://ilugcbe.techstud.org

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 with the > localization

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 ma

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 >        ImportError: No mod

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 databas

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 perhaps without the return wher

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 object have a pk assigned af

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 th

Re: Why it doesn't work in Django

2005-11-21 Thread PythonistL
Thank you, Adrian. I downloaded the latest version and now images work well. Regards, L

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 ve

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 django.views.stati

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, w

Re: Why it doesn't work in Django

2005-11-18 Thread Adrian Holovaty
On 11/18/05, PythonistL <[EMAIL PROTECTED]> wrote: > it does NOT work( the text is not white and background is not black. > > But why? Where did I make a mistake? The Web page isn't recognizing your CSS file. Django isn't intended serve static media files -- such as CSS -- so you'll need to use a

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', arial