Makemigration not working.. Please help me

2018-07-02 Thread Tamilvanan Anbalagan
When i execute the makemigrations command i am getting below error pleae help me to resolve this (py1) c:\TransportPortal\djangoproject>django-admin makemigrations portal Traceback (most recent call last): File "c:\program files (x86)\python36-32\Lib\runpy.py", line 193, in _run_modu

Re: Set null value for floatfield

2018-07-02 Thread Rakhee Menon
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 got {datatype}.'} ipdb> serializer.errors {'cast_weight': ['A valid number is required.']} In models.py cast_weight =

Re: Dynamic model fields using mysql?

2018-07-02 Thread hardik dadhich
it means that I can't do it on MySQL database! should I change the DB type and if so which one should I prefer! Postgres or NoSQL? On Tuesday, July 3, 2018 at 3:20:40 AM UTC+5:30, Melvyn Sopacua wrote: > > On maandag 2 juli 2018 21:33:35 CEST hardik dadhich wrote: > > > > > Can anyone tell me

Re: django windows apache tell if apache is working

2018-07-02 Thread Bob Bobsled
Hi, I'm still stuck on getting Apache to verify as working with wsgi. Wondering what I might be doing incorrectly. I'm reading lots of tuts, but it's a jungle out there. I changed the folder hierarchy for the project and app so venv, django_project, and django_app are all on the same level as

Re: A few doubts with an implementation.

2018-07-02 Thread Vijay Khemlani
You can also use PubNub (https://www.pubnub.com/) or similar services On Mon, Jul 2, 2018 at 10:29 AM Vineeth Sagar wrote: > Mikhailo Keda wrote: >> >> to fetch emails every N minutes or hours - >> http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html >> I want the user

Re: Running a django website on AWS EC2 on ubuntu

2018-07-02 Thread Jason
show your systemd file . looks like an issue there On Monday, July 2, 2018 at 7:13:44 PM UTC-4, Anirudh Jain wrote: > > I am getting the following error on running the command :- > > "sudo journalctl -u gunicorn" > > Error is :- > > Jul 02 20:05:35 ip-172-31-40-226 systemd[1]: Started gunicorn

Running a django website on AWS EC2 on ubuntu

2018-07-02 Thread Anirudh Jain
I am getting the following error on running the command :- "sudo journalctl -u gunicorn" Error is :- Jul 02 20:05:35 ip-172-31-40-226 systemd[1]: Started gunicorn daemon. Jul 02 20:05:35 ip-172-31-40-226 systemd[1]: gunicorn.service: Main process exited, code=exited, status=200/CHDIR Jul 02

Re: Newbie : Object copy - weird error :-)

2018-07-02 Thread Melvyn Sopacua
On vrijdag 29 juni 2018 09:44:40 CEST Mickael Barbo wrote: > I try to create a way to archive (copy) the same object instance on an > other DataBase. > > I followed this advice : # https://stackoverflow.com/ > questions/21699707/python-how-to-copy-all-attibutes-from- > base-class-to-derived-one

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

2018-07-02 Thread Melvyn Sopacua
On maandag 2 juli 2018 17:25:20 CEST Kasper Laudrup wrote: > Instead I added the following to my HTTPS server section: > > if ($host != my-website.org { > return 404; > } > > Seems to solve my problem just fine. Letsencrypts certbot had already > done something similar for

Re: Dynamic model fields using mysql?

2018-07-02 Thread Jason
or you can move to postgres and take advantage of the jsonfield integration with django. On Monday, July 2, 2018 at 3:48:46 PM UTC-4, hardik dadhich wrote: > > Hello, > Can anyone tell me how can I make dynamic Django model fields? I mean to > say that I want to save excel file data in Django

Re: Dynamic model fields using mysql?

2018-07-02 Thread Melvyn Sopacua
On maandag 2 juli 2018 21:33:35 CEST hardik dadhich wrote: > Can anyone tell me how can I make dynamic Django model fields? I mean to > say that I want to save excel file data in Django model using MySQL. and > excel column can vary. The user can upload 100 column table or he can be > upload 1000

Dynamic model fields using mysql?

2018-07-02 Thread hardik dadhich
Hello, Can anyone tell me how can I make dynamic Django model fields? I mean to say that I want to save excel file data in Django model using MySQL. and excel column can vary. The user can upload 100 column table or he can be upload 1000 column table in the database. so it is possible to add

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

2018-07-02 Thread Kasper Laudrup
Hi Melvyn, On 2018-07-02 11:32, Melvyn Sopacua wrote: On zondag 1 juli 2018 19:10:15 CEST Tomasz Knapik wrote: > Maybe you could restrict host headers at the nginx layer, but I don't > think it's worth your effort... If you think of it like that it seems like a lot of work. But if you

Re: A few doubts with an implementation.

2018-07-02 Thread Vineeth Sagar
Mikhailo Keda wrote: > > to fetch emails every N minutes or hours - > http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html > I want the user to know that the mails are being retrieved - > https://channels.readthedocs.io/en/latest/ > Thanks Mikhailo for the prompt reply,

Re: A few doubts with an implementation.

2018-07-02 Thread Mikhailo Keda
to fetch emails every N minutes or hours - http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html I want the user to know that the mails are being retrieved - https://channels.readthedocs.io/en/latest/ On Mon, Jul 2, 2018 at 3:53 PM, Vineeth Sagar wrote: > Problem: > We

A few doubts with an implementation.

2018-07-02 Thread Vineeth Sagar
Problem: We are developing a email-CRM. The task at hand is to fetch emails every N minutes or hours. I have received a codebase written by another guy who left the company,my job is to re-write/re-factor. The guy who previously wrote the code started a thread whenever a user logged and he put

Re: Isolated virtualenv and mod_wsgi - how do I do this on Apache

2018-07-02 Thread Vinicius Assef
Maybe this other article helps you understand the essence of a virtualenv: http://blog.aprendapython.com.br/articles/entendendo-virtualenv-1fr69/ Again, Google Translator is your friend. On 2 July 2018 at 09:28, Vinicius Assef wrote: > I second Melvyn. > > On top of what he wrote, Bruce, I

Re: Isolated virtualenv and mod_wsgi - how do I do this on Apache

2018-07-02 Thread Vinicius Assef
I second Melvyn. On top of what he wrote, Bruce, I work in an environment with exactly this limitation: a shared hosting running Apache where I don't have access to ssh. I build my environment (install libs, for that matter) locally and transfer all my pack through ftp in one shot. As Melvyn

Re: Unable to Save form to mysql - How to save form field values to mysql database and get the value from database

2018-07-02 Thread Andréas Kühne
In your views file, you don't have any index method - that's what the error is saying. So you need to solve the url mapping for your index method. Regards, Andréas 2018-07-02 5:55 GMT+02:00 Tamilvanan Anbalagan : > Hi Team, > > I am very new to django framework, iI am trying to using simple

Unable to Save form to mysql - How to save form field values to mysql database and get the value from database

2018-07-02 Thread Tamilvanan Anbalagan
Hi Team, I am very new to django framework, iI am trying to using simple forms to save into mysql database. also any samples pls send it to me, which will help to understand the connectivity. *see my sample code:* *views.py* from django.http import HttpResponseRedirect from django.views

Re: how to programmatically get the index name of a model field on a migration of django 1.8

2018-07-02 Thread Michal Petrucha
On Fri, Jun 29, 2018 at 11:25:16AM -0300, Fabio C. Barrionuevo da Luz wrote: > Hello, I need to delete an index created automatically by Django, from a > third-party application and my own django apps, for later I recreate the > index optimized way. > > this django application is used in several

Need your help to fix IntegrityError in my Django code.

2018-07-02 Thread prateek gupta
Hi All, I have created a simple database admin panel (Django2..6+Python3.6+Mysql5.7) where admin can operate create/edit/delete operations of database. I am facing following IntegrityError error when I try to Merge two products and click on Preview from my Django admin panel- 2018-07-02

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

2018-07-02 Thread Melvyn Sopacua
On zondag 1 juli 2018 19:10:15 CEST Tomasz Knapik wrote: > Maybe you could restrict host headers at the nginx layer, but I don't > think it's worth your effort... If you think of it like that it seems like a lot of work. But if you simply setup a default server that redirects to the actual

Django bugfix releases: 2.0.7 and 1.11.14

2018-07-02 Thread Carlton Gibson
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2018/jul/02/bugfix-releases/ -- 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