Deploy on windows server 2008 and IIS
Hi, I followed this http://blog.mattwoodward.com/2016/07/running-django-application-on-windows.html to deploy django on windows server 2008 and IIS but at the last step it returns 500 error, it says wfastcgi.py unexpectedly exit. What Other options do I have to fix this problem, I am on python 3.6 I also tried to use https://github.com/antoinemartin/django-windows-tools but the same error happened. It is a disaster to use fastcgi -- 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. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1dbdd09c-4cd0-434a-8d1a-60772bebe0ea%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Deploy on windows IIS
Hi, I have faced a problem while deploying django on windows server 2008 with IIS I followed this http://blog.mattwoodward.com/2016/07/running-django-application-on-windows.html and it returns unexpectedly exited error. I am using python 3.6 and the development pythons server runs with no problem but I can not configure factcgi, What options do I have? I can not even find the problem with this error. -- 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. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/81d75081-c368-498d-9980-3b0e0d0feefe%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Deploy on windows IIS
Is there any good tuturial which I can use Apache? I am also using Geoserver which runs on tomcat port 8080 I hope it does not make any problems On Friday, May 11, 2018 at 10:55:45 PM UTC+4:30, Matthew Pava wrote: > > I know it doesn’t directly answer your question, but I have Django running > on Windows Server 2012. After wrestling with IIS for just a bit, I decided > to just use Apache instead. > > > > *From:* django...@googlegroups.com [mailto: > django...@googlegroups.com ] *On Behalf Of *Majid Hojati > *Sent:* Friday, May 11, 2018 12:52 PM > *To:* Django users > *Subject:* Deploy on windows IIS > > > > Hi, > > I have faced a problem while deploying django on windows server 2008 with > IIS > > I followed this > > > http://blog.mattwoodward.com/2016/07/running-django-application-on-windows.html > > > > and it returns unexpectedly exited error. I am using python 3.6 and the > development pythons server runs with no problem but I can not configure > factcgi, > > What options do I have? I can not even find the problem with this error. > > -- > 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...@googlegroups.com . > To post to this group, send email to djang...@googlegroups.com > . > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/81d75081-c368-498d-9980-3b0e0d0feefe%40googlegroups.com > > <https://groups.google.com/d/msgid/django-users/81d75081-c368-498d-9980-3b0e0d0feefe%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/52e5c404-69ff-45a1-910d-aeda09ad58f0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Deploy on windows IIS
Hi, I faced a question, Do you unistalled iis and installed Apache?Also If I want to use Geoserver which runs on TomCat How can I use it beside django? On Friday, May 11, 2018 at 11:07:19 PM UTC+4:30, Matthew Pava wrote: > > I just go straight to the source or Google around. > > https://httpd.apache.org/docs/2.4/platform/windows.html > > Apache has different flavors for Windows. We’re either using ApacheHaus > or Apache Lounge. > > > > *From:* django...@googlegroups.com [mailto: > django...@googlegroups.com ] *On Behalf Of *Majid Hojati > *Sent:* Friday, May 11, 2018 1:33 PM > *To:* Django users > *Subject:* Re: Deploy on windows IIS > > > > Is there any good tuturial which I can use Apache? I am also using > Geoserver which runs on tomcat port 8080 I hope it does not make any > problems > > On Friday, May 11, 2018 at 10:55:45 PM UTC+4:30, Matthew Pava wrote: > > I know it doesn’t directly answer your question, but I have Django running > on Windows Server 2012. After wrestling with IIS for just a bit, I decided > to just use Apache instead. > > > > *From:* django...@googlegroups.com [mailto:django...@googlegroups.com] *On > Behalf Of *Majid Hojati > *Sent:* Friday, May 11, 2018 12:52 PM > *To:* Django users > *Subject:* Deploy on windows IIS > > > > Hi, > > I have faced a problem while deploying django on windows server 2008 with > IIS > > I followed this > > > http://blog.mattwoodward.com/2016/07/running-django-application-on-windows.html > > > > and it returns unexpectedly exited error. I am using python 3.6 and the > development pythons server runs with no problem but I can not configure > factcgi, > > What options do I have? I can not even find the problem with this error. > > -- > 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...@googlegroups.com. > To post to this group, send email to djang...@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/81d75081-c368-498d-9980-3b0e0d0feefe%40googlegroups.com > > <https://groups.google.com/d/msgid/django-users/81d75081-c368-498d-9980-3b0e0d0feefe%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > -- > 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...@googlegroups.com . > To post to this group, send email to djang...@googlegroups.com > . > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/52e5c404-69ff-45a1-910d-aeda09ad58f0%40googlegroups.com > > <https://groups.google.com/d/msgid/django-users/52e5c404-69ff-45a1-910d-aeda09ad58f0%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/afc948bd-7b65-4bd7-9ed2-942fa7be0493%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Deploy on windows IIS
Which Mode_wsgi you used for python 3.6 x86 and apache2.4 Haus x64 for windows ? On Friday, May 11, 2018 at 11:07:19 PM UTC+4:30, Matthew Pava wrote: > > I just go straight to the source or Google around. > > https://httpd.apache.org/docs/2.4/platform/windows.html > > Apache has different flavors for Windows. We’re either using ApacheHaus > or Apache Lounge. > > > > *From:* django...@googlegroups.com [mailto: > django...@googlegroups.com ] *On Behalf Of *Majid Hojati > *Sent:* Friday, May 11, 2018 1:33 PM > *To:* Django users > *Subject:* Re: Deploy on windows IIS > > > > Is there any good tuturial which I can use Apache? I am also using > Geoserver which runs on tomcat port 8080 I hope it does not make any > problems > > On Friday, May 11, 2018 at 10:55:45 PM UTC+4:30, Matthew Pava wrote: > > I know it doesn’t directly answer your question, but I have Django running > on Windows Server 2012. After wrestling with IIS for just a bit, I decided > to just use Apache instead. > > > > *From:* django...@googlegroups.com [mailto:django...@googlegroups.com] *On > Behalf Of *Majid Hojati > *Sent:* Friday, May 11, 2018 12:52 PM > *To:* Django users > *Subject:* Deploy on windows IIS > > > > Hi, > > I have faced a problem while deploying django on windows server 2008 with > IIS > > I followed this > > > http://blog.mattwoodward.com/2016/07/running-django-application-on-windows.html > > > > and it returns unexpectedly exited error. I am using python 3.6 and the > development pythons server runs with no problem but I can not configure > factcgi, > > What options do I have? I can not even find the problem with this error. > > -- > 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...@googlegroups.com. > To post to this group, send email to djang...@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/81d75081-c368-498d-9980-3b0e0d0feefe%40googlegroups.com > > <https://groups.google.com/d/msgid/django-users/81d75081-c368-498d-9980-3b0e0d0feefe%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > -- > 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...@googlegroups.com . > To post to this group, send email to djang...@googlegroups.com > . > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/52e5c404-69ff-45a1-910d-aeda09ad58f0%40googlegroups.com > > <https://groups.google.com/d/msgid/django-users/52e5c404-69ff-45a1-910d-aeda09ad58f0%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/da02dd76-72a7-4c41-9c9e-c9cf9a743345%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Field.choices get all items as json
Hi, I have a Field.choices in my model. lets say it is: YEAR_IN_SCHOOL_CHOICES = ( > ('FR', 'Freshman'), > ('SO', 'Sophomore'), > ('JR', 'Junior'), > ('SR', 'Senior'), > ) I can access them using this method Model. YEAR_IN_SCHOOL_CHOICES but how can I convert it to a json then I can send them using a webservice ? is there any good method? -- 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. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/42833f6b-0016-42ec-81c2-d37c9cd9a119%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Field.choices get all items as json
In fact I want to convert all of these choises into json format and then send them to user thanks On Thursday, May 17, 2018 at 8:46:42 PM UTC+4:30, C. Kirby wrote: > > if you just want to put that into json do: > import json > > YEAR_IN_SCHOOL_CHOICES = ( > ('FR', 'Freshman'), > ('SO', 'Sophomore'), > ('JR', 'Junior'), > ('SR', 'Senior'), > ) > > serialized_year_choices = json.dumps(Model.YEAR_IN_SCHOOL_CHOICES) > > > > > > On Thursday, May 17, 2018 at 10:52:15 AM UTC-4, Majid Hojati wrote: >> >> Hi, >> I have a Field.choices in my model. lets say it is: >> >> YEAR_IN_SCHOOL_CHOICES = ( >>> ('FR', 'Freshman'), >>> ('SO', 'Sophomore'), >>> ('JR', 'Junior'), >>> ('SR', 'Senior'), >>> ) >> >> >> I can access them using this method Model. YEAR_IN_SCHOOL_CHOICES but >> how can I convert it to a json then I can send them using a webservice ? is >> there any good method? >> > -- 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. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/be3eabf9-939a-429f-a7c8-62ba30b98981%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
geodjango wrong srid when it saves feature
Hi, I tried to read data from a shape file and save them into database. well here is my code lyr = ds[0] for feat in lyr: geom_t = feat.geom.transform(wgs84, clone=True) print(geom_t.wkt) print(feat.geom.wkt) name ='' Twoway='1' data = { 'name': name, 'Twoway': Twoway, 'geom': geom_t.wkb } form = Street_Form(data) if form.is_valid(): savedlocation = form.save() well it saves and works fine. I printed some of my geometries as wkt before saving to databse and here is the result LINESTRING (50.9847540637495 35.8384680697353,50.9850968571006 35.8383655346687) LINESTRING (50.9847540637495 35.8384680697353,50.9850968571006 35.8383655346687) As you can see they are EPSG:4326 and nothing is wrong. Here is my model class str(models.Model): geom = models.LineStringField(srid=4326) but when I read data from database they are as following "LINESTRING(0.000457917485762628 0.000321907544087987,0.000457920236524686 0.000321915031075541)" the above result is from this query select st_astext(geom) from public."app_str" well the geometries are misplaced, where is the problem?why this happens? -- 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. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/76979930-39f5-4deb-9c95-dcf3d7f55f97%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: geodjango wrong srid when it saves feature
in fact I tried this and problem solved I have no idea why this happened geom_t = feat.geom.transform(wgs84, clone=True) geom= GEOSGeometry(geom_t.wkt,4326) On Wednesday, May 23, 2018 at 7:54:46 PM UTC+4:30, Daniel Germano Travieso wrote: > > Hello! > > You should probably use the LineString from django.contrib.gis.geos to > store Geo objects on the database > > Hope it helps. > > *[]'s* > *Daniel Germano Travieso* > *Engenharia da Computação Turma: 013* > *Unicamp* > > On Wed, May 23, 2018 at 11:54 AM, Majid Hojati > wrote: > >> Hi, >> I tried to read data from a shape file and save them into database. well >> here is my code >> >> >> lyr = ds[0] >> >> for feat in lyr: >> geom_t = feat.geom.transform(wgs84, clone=True) >> print(geom_t.wkt) >> print(feat.geom.wkt) >> >> name ='' >> Twoway='1' >> >> data = { >> 'name': name, >> 'Twoway': Twoway, >> 'geom': geom_t.wkb >> } >> form = Street_Form(data) >> if form.is_valid(): >> savedlocation = form.save() >> >> >> well it saves and works fine. I printed some of my geometries as wkt before >> saving to databse and here is the result >> >> >> LINESTRING (50.9847540637495 35.8384680697353,50.9850968571006 >> 35.8383655346687) >> LINESTRING (50.9847540637495 35.8384680697353,50.9850968571006 >> 35.8383655346687) >> >> >> As you can see they are EPSG:4326 and nothing is wrong. >> Here is my model >> >> class str(models.Model): >> geom = models.LineStringField(srid=4326) >> >> >> but when I read data from database they are as following >> >> >> "LINESTRING(0.000457917485762628 0.000321907544087987,0.000457920236524686 >> 0.000321915031075541)" >> >> >> the above result is from this query >> >> >> select st_astext(geom) from public."app_str" >> >> >> well the geometries are misplaced, where is the problem?why this happens? >> >> -- >> 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...@googlegroups.com . >> To post to this group, send email to django...@googlegroups.com >> . >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/76979930-39f5-4deb-9c95-dcf3d7f55f97%40googlegroups.com >> >> <https://groups.google.com/d/msgid/django-users/76979930-39f5-4deb-9c95-dcf3d7f55f97%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/167690aa-e363-4789-a115-11026079c2de%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
geodjango raster field get pixel value
Hi, Is there any function to get raster value under a point using geodjango?or we must perform a raw query? -- 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. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/63334e6f-2ac5-434f-8041-6e4bea64e33c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: geodjango raster field get pixel value
try to config your urls.py correctly On Saturday, October 6, 2018 at 9:14:33 PM UTC+3:30, Pradeep Singh wrote: > > when i sendind request always m getting django 404 error can you help me > ..nd please tell me how to fix it > > On Sat, 6 Oct 2018 at 10:42, Pradeep Singh > wrote: > >> i don't know, i hava a problem can you solve this . >> >> On Sat, 6 Oct 2018 at 10:09, Majid Hojati > >> wrote: >> >>> [image: Boxbe] <https://www.boxbe.com/overview> This message is >>> eligible for Automatic Cleanup! (asd...@gmail.com ) Add >>> cleanup rule >>> <https://www.boxbe.com/popup?url=https%3A%2F%2Fwww.boxbe.com%2Fcleanup%3Fkey%3D2CQCStXD2pspqOIeT%252B8CbXjoHf6S8g%252FhLPcMXbMbMKw%253D%26token%3DvLiNoKF4esrI2A%252BFP26dBZcj8QlMhwmBDXWBwmVFJl%252FwMdUxlT5s%252F5fRODsg83LYdee9qzgQeL3Qciisb6Y1wzR2Y697p0%252BuDK9qD3uMx8tk%252BOxKY0CZM1w%252FaQnMppMQDjB5ETOHt88%253D&tc_serial=43897169245&tc_rand=872094224&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001> >>> >>> | More info >>> <http://blog.boxbe.com/general/boxbe-automatic-cleanup?tc_serial=43897169245&tc_rand=872094224&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001> >>> >>> Hi, >>> Is there any function to get raster value under a point using >>> geodjango?or we must perform a raw query? >>> >>> -- >>> 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...@googlegroups.com . >>> To post to this group, send email to django...@googlegroups.com >>> . >>> Visit this group at https://groups.google.com/group/django-users. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/django-users/63334e6f-2ac5-434f-8041-6e4bea64e33c%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/django-users/63334e6f-2ac5-434f-8041-6e4bea64e33c%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- 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. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/510c3c11-e0ac-418b-9d9a-fedaf0e1ffa5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.