Re: Restrict downloading files in Django?

2015-01-31 Thread Russell Keith-Magee
On Sun, Feb 1, 2015 at 1:33 AM, Javier Guerra Giraldez wrote: > On Sat, Jan 31, 2015 at 11:52 AM, Robert Rössler > wrote: > > what is the best way to restrict downloading files only to authorized > users? > > it's not hard to do if you manage the file

Re: Initial stages of django

2015-01-31 Thread Vijay Khemlani
Did you take a look at the official tutorial? https://docs.djangoproject.com/en/1.7/intro/tutorial01/ On Sat, Jan 31, 2015 at 5:02 PM, Sreenivasarao Pallapu < sreenivas.eng...@gmail.com> wrote: > Hi, >I'm new to django. I know basic python. I heard that django is nothing > but python. I've

Re: Is is possible to have a distributed database with Django?

2015-01-31 Thread Stephen J. Butler
Sure, it's possible. But this is a really hard problem. One way is to let the database do all the heavy lifting. But you'll have to forget about using simple databases like SQLite or MySQL. Oracle's advanced replication documentation talks about exactly this type of situation w/r/t materialized

Initial stages of django

2015-01-31 Thread Sreenivasarao Pallapu
Hi, I'm new to django. I know basic python. I heard that django is nothing but python. I've installed django and started as on video tutorials. But it is a bit confusing to me. I know nothing about the classes and functions they are using. Could you please suggest me better book or tutorial

Re: incorrect syntax of django core management __init.py file (reported on windows powershell)

2015-01-31 Thread Vijay Khemlani
Django 1.3 only works with python 2, not python 3 On Sat, Jan 31, 2015 at 2:31 PM, Akshit Arora wrote: > hey, I am working on this project that requires django with apache > > https://github.com/nbproject/nbproject > > it's installation guide is here : > >

incorrect syntax of django core management __init.py file (reported on windows powershell)

2015-01-31 Thread Akshit Arora
hey, I am working on this project that requires django with apache https://github.com/nbproject/nbproject it's installation guide is here : https://github.com/nbproject/nbproject/wiki/Install-guide Now, I have installed every dependency mentioned in step 2. versions installed are: django 1.3

Re: Restrict downloading files in Django?

2015-01-31 Thread Javier Guerra Giraldez
On Sat, Jan 31, 2015 at 11:52 AM, Robert Rössler wrote: > what is the best way to restrict downloading files only to authorized users? it's not hard to do if you manage the file downloading with a view. of course, file serving within Django is very inefficient, your

Re: Restrict downloading files in Django?

2015-01-31 Thread Edgar Gabaldi
i don't know if this is the best way to do that. But you can create a view that response the file after verify the user credentials. The problem is: once the user knows the urls from file, he can share the url with others. Its not difficult create an "one time url" to the request to solve this

Restrict downloading files in Django?

2015-01-31 Thread Robert Rössler
Hello, what is the best way to restrict downloading files only to authorized users? I want to let users upload files and let them download them, but restrict downloading other users files. Thank you -- You received this message because you are subscribed to the Google Groups "Django users"

Is is possible to have a distributed database with Django?

2015-01-31 Thread Itumeleng Mphoso
I'm new to Django and have just deployed my first Django application. My problem is, the application is used by people in different locations and networks, so when ever the network is down, those using a different network can't have access to the application. I need all the networks to have a

Re: How to get hold of a session after getting signaled?

2015-01-31 Thread Babatunde Akinyanmi
On 31 Jan 2015 10:11, "Stephen J. Butler" wrote: > > You still could store the do_something_after_badge_awarded result in a > database table, but cache the lookups from the view for something > short, like 5 minutes. How quickly after a badge is awarded do people > need

Re: admin site questions

2015-01-31 Thread Andreas Kuhne
2015-01-31 7:14 GMT+01:00 Mike : > I'm building a simple CRUD application to hold some data for our research > group. After 2 hours I have the basic functionality working using the > admin site only and no custom views. I just need to figure out if I can go > ahead and

Re: How to get hold of a session after getting signaled?

2015-01-31 Thread Stephen J. Butler
You still could store the do_something_after_badge_awarded result in a database table, but cache the lookups from the view for something short, like 5 minutes. How quickly after a badge is awarded do people need to be notified? Also, you could use a memcached library to store/fetch the awards by

Re: Do Signals block Django process?

2015-01-31 Thread Tobias Dacoir
Thanks for the info about django-debug-toolbar. I will certainly test it. I assume that I do a quite a lot of slow queries, but during development I run with a very reduced dataset, so my database (sqlite too instead of mysql) only contains a couple of hundred entries whereas in deployment it

Re: How to get hold of a session after getting signaled?

2015-01-31 Thread Tobias Dacoir
I can't just call badge.award_to(user) because I need to wait for the check logic to verify if the user should receive a badge or not. My workaround is that I created a new table that inserts badge and user foreign keys and before the view is rendered I will check this table for any entries