Re: sqlite3 database encrytion for Django.

2017-05-05 Thread Antonis Christofides
Hi, That's interesting. May I ask why you want to do this? Regards, A. Antonis Christofides http://djangodeployment.com On 2017-05-05 21:51, agajesh...@atompower.com wrote: > Hello everyone, > > I want to encrypt my sqlite3 database such that it cannot be accessed without > a key. I came

Doesn't generate apps.py (polls tutorial)

2017-05-05 Thread 齊藤大将
Hello, I am a beginner. When I run $ python manage.py startapp polls only apps.py does not exist so I cannot proceed next step. How can I deal with this problem ? It would be appreciate if it is explained. I am looking this page, https://docs.djangoproject.com/en/1.11/intro/tutorial01/ -- You

Django Channels Using Tokens

2017-05-05 Thread Vahid Kowsari
Hi I am working on the Backend for an app that uses Django Rest Framework as well as Django Channels. In order to make both of these work together I have had to implement my own decorators to get the Token from the message on Django Channels which works great. I get the token using the

Re: Need help with deployment

2017-05-05 Thread Luiz Guilherme Silva
Hello Ahmed. Why are you using apache instead of IIS? I know it's not the question, but I've worked in a project running on IIS for a long time without big problems, and you don't need Apache for this. 2017-05-04 16:00 GMT-03:00 sarfaraz ahmed : > Hello Friends, > > I

Re: php

2017-05-05 Thread James Bennett
Please remember that Django's Code of Conduct applies here, and asks all of us to be respectful of each other and constructive in disagreement. Insulting a person's choice of programming language falls very much on the wrong side of that. As to the original question, there are people who've

Re: Link to download

2017-05-05 Thread 'Abraham Varricatt' via Django users
That's an interesting project! If I use WhiteNoise as part of a production deploy somewhere, can I skip (or ignore) running 'manage.py collectstatic' ? Yours, Abraham V. On Wednesday, 3 May 2017 15:13:36 UTC-4, Dan Tagg wrote: > > You might want to check out WhiteNoise ( >

Re: php

2017-05-05 Thread Larry Martell
On Fri, May 5, 2017 at 3:28 PM, James Schneider wrote: > > Can we add php code in our django framework to make it better > > > No. > > Nothing can be made better by adding PHP to it. LOL! -- You received this message because you are subscribed to the Google Groups

Re: php

2017-05-05 Thread carlos
i think read the source code here https://github.com/mvasilkov/django-php maybe help you! On Fri, May 5, 2017 at 8:45 AM, Saurabh Pathak wrote: > Can we add php code in our django framework to make it better > > -- > You received this message because you are

Re: php

2017-05-05 Thread James Schneider
Can we add php code in our django framework to make it better No. Nothing can be made better by adding PHP to it. If you want to write PHP code, I'd suggest finding a framework in that language. -James -- You received this message because you are subscribed to the Google Groups "Django

Re: sqlite3 database encrytion for Django.

2017-05-05 Thread Malcolm MacKinnon
I suggest you consider using keyzar and django-encrypted-fields. Here's the code: https://github.com/defrex/django-encrypted-fields/ On Fri, May 5, 2017 at 11:51 AM, wrote: > Hello everyone, > > I want to encrypt my sqlite3 database such that it cannot be accessed >

sqlite3 database encrytion for Django.

2017-05-05 Thread agajeshwar
Hello everyone, I want to encrypt my sqlite3 database such that it cannot be accessed without a key. I came across "sqlcipher" tool which provides encryption for sqlite3 database, but I couldn't find enough support to make it work from django. It would be very helpful if someone can share

Re: Error was: cannot import name 'GDALRaster in Window 8.1

2017-05-05 Thread Prashant Verma
Only for window users: Follow the below steps to install gdal into the window environment: Step 1: Install OSGeo4W The OSGeo4W installer makes it simple to install the PROJ.4, GDAL, and GEOS libraries required by GeoDjango. First, download the OSGeo4W installer, and run it. Select Express

php

2017-05-05 Thread Saurabh Pathak
Can we add php code in our django framework to make it better -- 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

Re: Problem with CircularDependency Model

2017-05-05 Thread Dartos
Sorry, my earlier suggestion for Institute.members is incorrect. Here's the correct code: def members(self): return self.user_set.all() For example, if foo is an institute, then foo.user_set.all() would give all users related to that institution. Dartos On Friday, May 5, 2017 at 11:00:46

Re: Automatic content types removal

2017-05-05 Thread marcin . j . nowak
Thanks, Tim. I'll take a look at this. > From the Django 1.11 release notes: > >- The prompt for stale content type deletion no longer occurs after >running the migrate command. Use the new remove_stale_contenttypes > >

Re: Problem with CircularDependency Model

2017-05-05 Thread Dartos
Hi, Have you tried breaking up the migrations into multiple steps? First create User and Institute without reference to each other. Then try additional migrations. Also, you can simplify Institute.members using reverse relations as follows: def members(self): return

Re: Django forks / clones / wrappers

2017-05-05 Thread Andréas Kühne
Hi, As far as I know, there is nothing that is compatible with Django and is not Django? I don't really understand what you are trying to do either, and why you don't want to use Django. From what you have written I am guessing that you want the models/db layer and forms part from Django? What I

Re: Automatic content types removal

2017-05-05 Thread Tim Graham
>From the Django 1.11 release notes: - The prompt for stale content type deletion no longer occurs after running the migrate command. Use the new remove_stale_contenttypes command

Re: {{ form }} vs {{ form }}

2017-05-05 Thread guettli
Am Donnerstag, 4. Mai 2017 16:03:25 UTC+2 schrieb Todor Velichkov: > > Take a look at: > 1) Form rendering options > > 2) Outputting forms as HTML >

Django forks / clones / wrappers

2017-05-05 Thread marcin . j . nowak
Hi Does anyone know a web framework, non full-stack / microframework, but partially compatible with Django (in terms of the programming interface)? Django have too many design flaws for big projects, so I'd like to move into something less coupled. Any bridges / wrappers for Flask maybe? The

Re: Error was: cannot import name 'GDALRaster in Window 8.1

2017-05-05 Thread Prashant Verma
I have installed it now. But It's showing some error with version. Can you tell me what is this? How can I able to fix this? C:\Users\Prashant>*gdalinfo --version* ERROR 1: Can't load requested DLL: C:\Program Files\GDAL\gdalplugins\ogr_MSSQLSp atial.dll 126: The specified module could not be

Problem with CircularDependency Model

2017-05-05 Thread Tobias Dacoir
I am trying to build a model (in two separate apps) which has the following constraints: - There can be many institutes - there can many users - each user is a member of exactly one institute - each institute has exactly one master user However I am running into CircularDependency errors when

Automatic content types removal

2017-05-05 Thread marcin . j . nowak
Hi. Why Django automatically removes content types? Due to lack of flexibility in auth system I was forced to create custom content type for custom perms. Now I've realized that my custom content type is missing. I am not sure, of course, but I think that Django removed my CT silently. I know

Redirect from auth backend

2017-05-05 Thread roboslone -
Hello, I have an authentication backend, that authenticates users against a remote service using session cookie. Mentioned cookie can expire and remote service requires users to refresh it by visiting that service's URL (https://auth-service.com/renew?...). Cookie expiration is managed by that

choices choice utility

2017-05-05 Thread Mike Dewhirst
Because I use many of the same constants in different apps in my project I keep most of them including almost all choices in a single __init__.py file and import them wherever required. Here is a tiny utility I use all the time ... whenever get__display() is inappropriate. def

Re: django 1.11 login user

2017-05-05 Thread ludovic coues
My guess is that your error happen when accessing the page before submitting the firm. So you don't have any POST data and trying to access any key rise an error. You can use request.POST.get("key", "default_value") or you can write an if and testing that request.method is "POST". If I'm wrong,