Create View not saving form data to database

2019-06-13 Thread curtly critchlow
CreateView class not saving data to database. When I hit submit, the html the page only refreshes. l'm not getting any errors so I have no idea what i'm doing wrong. Does CreateView automatically takes care of many to many relationships? here is my code below, I've been trying to solve this

libssl.so.1.1 / OPENSSL_1_1_1 not found after upgrade (ubuntu server 18.04 / apache / mod_wsgi)

2019-06-13 Thread Volker
Two days ago my django app which runs on an Ubuntu 18.04.2 LTS server with apache 2.4 (from repo9 and mod_wsgi in an venv with Python 3.6 throws an exception after https login - as it seems - after a package upgrade. To my understanding libssl/openssl is causing the error. The error message

django/apache/ubuntu server18.04 openssl not found after package upgrade / libssl.so.1.1: version `OPENSSL_1_1_1' not found

2019-06-13 Thread Volker
Two days ago my django app which runs on an Ubuntu 18.04.2 LTS server with apache and mod_wsgi in an venv with Python 3.6 throws an exception after https login - as it seems - after a package upgrade. To my understanding libssl/openssl is causing the error. The error message below states that

Re: my file uploads missing/deleted

2019-06-13 Thread omar ahmed
i did first and second steps but what about DROPBOX_OAUTH2_TOKEN = your token from dropbox did you mean Generate access token ?? DROPBOX_ROOT_PATH = your root path to store media did you mean link to Dropbox app folder ? thanks On Thursday, June 13, 2019 at 6:15:02 PM UTC+2, Joe Reitman wrote: >

Re: django.contrib.gis for Windows 10

2019-06-13 Thread Chetan Ganji
Hey, I had a similar issue with one of the projects I was working on. GDAL was not working properly in windows 10, it was not getting detected for some reason. I never figured out why and how to fix that. I ended up using Ubuntu to fix the issue. It worked like a charm! Regards, Chetan Ganji

django.contrib.gis for Windows 10

2019-06-13 Thread Thanasis
Hello. I want to use the GeoDjango application. I begun with the tutorial GIS Tutorial . I installed properly the PostgreSQL and PostGis for Windows 10. In addition, I follow the steps and I installed the OSGeo4W

Re: my file uploads missing/deleted

2019-06-13 Thread Joe Reitman
Omar, You should not be configuring views for Dropbox. DJANGO-STORAGES does all the back end coding for you. Follow these steps from DJANGO-STORAGES documentation after removing the code changes you made to views. I'm assuming your using pip. 1. pip install django-storages 2. pip install

Re: my file uploads missing/deleted

2019-06-13 Thread James Farris
A quick google search took me here https://stackoverflow.com/questions/11914472/stringio-in-python3 On Thu, Jun 13, 2019 at 8:23 AM omar ahmed wrote: > and this was Traceback > Environment: > > > Request Method: GET > Request URL: https://arena3.herokuapp.com/8/clubpage/ > > Django Version:

Re: my file uploads missing/deleted

2019-06-13 Thread James Farris
When you run the server does it give you any errors? On Thu, Jun 13, 2019 at 8:12 AM omar ahmed wrote: > i added django_dropbox_storage in installed apps in settings.py > what should i add else ? > thanks > On Thursday, June 13, 2019 at 4:43:23 PM UTC+2, James Farris wrote: >> >> That means it

Re: my file uploads missing/deleted

2019-06-13 Thread omar ahmed
and this was Traceback Environment: Request Method: GET Request URL: https://arena3.herokuapp.com/8/clubpage/ Django Version: 2.2.1 Python Version: 3.6.8 Installed Applications: ['core.apps.CoreConfig', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes',

Re: my file uploads missing/deleted

2019-06-13 Thread omar ahmed
i added django_dropbox_storage in installed apps in settings.py what should i add else ? thanks On Thursday, June 13, 2019 at 4:43:23 PM UTC+2, James Farris wrote: > > That means it wasn’t installed or it wasn’t added to your settings.py file > in the installed apps section > > Sent from my

Re: my file uploads missing/deleted

2019-06-13 Thread James Farris
That means it wasn’t installed or it wasn’t added to your settings.py file in the installed apps section Sent from my mobile device > On Jun 13, 2019, at 7:07 AM, omar ahmed wrote: > > i followed the steps > when i typed > python manage.py test [--settings=test_settings] > i found this

Re: my file uploads missing/deleted

2019-06-13 Thread omar ahmed
i followed the steps when i typed python manage.py test [--settings=test_settings] i found this error ModuleNotFoundError: No module named '[--settings=test_settings]' and when i tried to open my site (club page that has image) i foun this error No module named 'StringIO' i searched at Google

Re: parse xml from url to database

2019-06-13 Thread Nuno Vieira
Hi Ewen, thanks for the reply. I have extended user model with a profile model and a new field (xml_ky). The goal is to verify each user profile and if they have an xml url on field xml_ky, than populate the database with the properties located on that url. Thanks for your help.

Why "WebsocketDemultiplexer" is not available in 2.x series of Django Channels

2019-06-13 Thread Sajith Samarathunga
Why "WebsocketDemultiplexer" is not available in 2.x series the latest of Django Channels but only available on 1.x series of Django Channels. Is there any security or performance related reason for removing "WebsocketDemultiplexer". In 2.x documentation the topics "generics" and "WebSocket

Why "Generic Consumers" are removed from Djang Channels Latest Release

2019-06-13 Thread Sajith Samarathunga
Is there and reason for removing "Generic Consumers" which includes "WebsocketDemultiplexer". is there any security related reason or performance related reason behinf removing these from lated relase of django channels. documentation for both 2.x the latest and 1.x are following.

Re: parse xml from url to database

2019-06-13 Thread Nuno Vieira
quarta-feira, 12 de Junho de 2019 às 17:22:01 UTC+1, Nuno Vieira escreveu: > > Hi there. > > I´m having some problems on parsing a real estate xml to database. > The user profile have url field to import properties automatically from > xml feed (url). The user can insert mannually or

Re: Confused with deleted migrations

2019-06-13 Thread Andréas Kühne
Hi Mohammed, You need to make sure that all migrations that you do in development also can be run on the production machine - the migrations should be version controlled and checked in. Then you can run migrate when deploying new code and all migrations should just work. This is how I do it at

Re: How can I send an outlook mail from angular using django

2019-06-13 Thread Andréas Kühne
Hi, You cannot send outlook email via django at all. Django runs on a server that hasn't access to the clients email application. However - what you can do is use the standard a tag with a "mailto:; link. This should open the clients email program (whatever that is) and send an email from there.

Re: Disable count admin

2019-06-13 Thread Michele Gatti
Thansk Il giorno sab 8 giu 2019 alle ore 09:03 Derek ha scritto: > Can you use: > > > https://docs.djangoproject.com/en/1.8/ref/contrib/admin/#django.contrib.admin.ModelAdmin.show_full_result_count > > > On Monday, 3 June 2019 14:48:23 UTC+2, Michele Gatti wrote: >> >> Hi i need to disable

Re: Django apk

2019-06-13 Thread Juan Pablo Romero Bernal
Hi, I think you have some alternatives: 1. Build an android native app (or using some cross-platform framework) that use your django app as an API (you can use django rest framework to make this task). 2. Build a PWA and use (as above) your django app as an API. 3. Use Briefcase [1] (project