Re: django windows apache tell if apache is working

2018-07-03 Thread Bob Bobsled
Hi, I think I see the problem now. WAMP is a special case for aliases, and it's root directory default setup in c:wamp\www for ex.. I need to do some more work on, say for ex. using Django Tut 01, setting up mysite as an alias in wamp, and then putting the polls app in it. I believe apache

Re: django-raster rendering raster url

2018-07-03 Thread Jason
No, they don't mean coordinates, they mean the actual index location in a grid. Say you have a 100x100 grid, each (x, y) coordinate like (1, 5) represents one tile image. On Tuesday, July 3, 2018 at 3:43:07 PM UTC-4, Xristos Xristoou wrote: > > i want to add raster functionality in django

Re: django send_mail on production (gmail)

2018-07-03 Thread Jason
https://stackoverflow.com/help/how-to-ask Learning how to ask a good question, whatever language you speak, is an invaluable skill. On Tuesday, July 3, 2018 at 10:10:19 AM UTC-4, Mikhailo Keda wrote: > > More details is needed? Do you have any error? What hosting are you using? > What port

django-raster rendering raster url

2018-07-03 Thread Xristos Xristoou
i want to add raster functionality in django using postgis database using django-raster package and this docs . here my code : models.py from django.contrib.gis.db import modelsclass RasterWithName(models.Model): raster =

Re: Set null value for floatfield

2018-07-03 Thread Jason
sounds like you didn't make a migration after the change. On Tuesday, July 3, 2018 at 1:24:40 AM UTC-4, Rakhee Menon wrote: > > Yeah! but now I get this error > > 'required': 'This field is required.', 'null': 'This field may not be > null.', 'invalid': 'Invalid data. Expected a dictionary, but

TestCase vs TransactionTestCase

2018-07-03 Thread clavierplayer
Hello, I'm looking for some insight for some odd behavior with some unit tests, which I think stems from some misunderstanding of how these classes actually work. 1. For TestCase, the Django docs say that it does matter what order in which the tests are run. But elsewhere in the same doc, it

Re: Dynamic model fields using mysql?

2018-07-03 Thread hanleybrand
One question I'd ask would be why you wouldn't just save the files either on disk or even in the database (using the BLOB datatype) if it absolutely had to be in the database... then if you needed to manipulate/display/read them at a later date you would just load the files in question. If

Re: Makemigration not working.. Please help me

2018-07-03 Thread Keshav Garg
Make sure that your app_name is there in setting.py under INSTALLED_APPS and register your model under admin.py Also there is indentation error in your model POST. Please correct it before running makemigrations command. I hope this will Work :-) On Tuesday, July 3, 2018 at 11:10:16 AM

Re: django send_mail on production (gmail)

2018-07-03 Thread Mikhailo Keda
More details is needed? Do you have any error? What hosting are you using? What port are you using, is it open? -- 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: A few doubts with an implementation.

2018-07-03 Thread Bill Torcaso
I didn't deeply consider your problem, but the aspect of doing a repetitive task at unrelated time intervals reminds me of how the Unix kernel handles the alarm() system call for multiple, unrelated processes. For you, it will take at most one thread to handle any number of users. 1.

django send_mail on production (gmail)

2018-07-03 Thread Kamal Sharma
Dear django community, I'm working on mail with django but it is working fine in my dev server (local) but on production it is not working. Can you help me please? Thanks Kamal Sharma -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Django production deployment on my VPS

2018-07-03 Thread Vinicius Assef
The first thing you really should install in your VPS server is fail2ban. Read about it. On 3 July 2018 at 03:04, Kamal Sharma wrote: > is this production environment with gunicorn and nginx is robust, can i > develop a big portal and deploy into it with no problem?? > > On Sun, Jul 1, 2018 at

Re: Invalid HTTP_HOST header when website being accessed by public IP

2018-07-03 Thread Kasper Laudrup
Hej again Melvyn, On 07/03/2018 12:13 AM, Melvyn Sopacua wrote: The only reason to set it up like that for HTTPS is that it's possible the SNI name differs from the HTTP Host header. For HTTP redirects it makes no sense: the HTTP header is in plain text and is used to determine the server

Set blank value for floatField

2018-07-03 Thread Rakhee Menon
ipdb> serializer.errors {'cast_weight': ['A valid number is required.']} In models.py cast_weight = models.FloatField(null=True, blank=True) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: django production

2018-07-03 Thread PASCUAL Eric
Hi Kamal, Of course you can. It's just a matter of defining virtual hosts in Nginx configuration and route them to the different Gunicorns serving your apps, based on the host found in the requests URLs. Best regards Eric From:

Re: Django production deployment on my VPS

2018-07-03 Thread Gerardo Palazuelos Guerrero
hi Kamal, In the course I did, we moved files using FTP. In reality, you can use SSH / SCP, FTP or git repository (on the latter, remember to avoid uploading any sensitive info to repository). Whatever method you use, please consider first setting up a firewall and proper firewall rules to

Re: Django production deployment on my VPS

2018-07-03 Thread Kamal Sharma
Hi Gerado Palazuelos Guerrero, Thanks a lot is is working fine for me, now i am able to deploy my django project on production server. But i have some questions related to the same, that how can i deploy my changes from local to production, can it is possible by copy my django app from local to

django production

2018-07-03 Thread Kamal Sharma
Dear Django community, i have deployed my django project at production server with gunicorn and nginx and it is working good. My question is can i deploy more then one django project on production server(ubuntu 16.04) for running two websites? Thank you Kamal Sharma -- You received this

Re: Django production deployment on my VPS

2018-07-03 Thread Kamal Sharma
is this production environment with gunicorn and nginx is robust, can i develop a big portal and deploy into it with no problem?? On Sun, Jul 1, 2018 at 9:45 AM Gerardo Palazuelos Guerrero < gerardo.palazue...@gmail.com> wrote: > hi Kamal, > I found this link as part of a django training I did

Re: Makemigration not working.. Please help me

2018-07-03 Thread Mark Phillips
To start with, in your Post class, you need to indent the post= and user= lines. Like this: class Post(models.Model): post = models.CharField( user = models. ForeignKey(.. Python depends on indentation - https://www.python-course.eu/python3_blocks.php. You can Google "Python