using extends more than once

2018-09-05 Thread Rootz
Can a child template have more than one parent template? I am using the the latest release for Django and I have several template to include in the one template file. How can I do so using template inheritance (using the default django template api) ? -- You received this message because you a

Re: Amazon S3 Storage

2015-07-17 Thread Rootz
On Thu, Jul 16, 2015 at 10:22 PM, Rootz > > wrote: > >> Can you explain to me the easiest way to store uploaded image to a Django >> Project using Amazon S3 for all my uploads to the project? >> >> Thanks >> >> -- >> You received this messag

Amazon S3 Storage

2015-07-16 Thread Rootz
Can you explain to me the easiest way to store uploaded image to a Django Project using Amazon S3 for all my uploads to the project? Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emai

Using multiple form in Class Base View (CBV)

2015-04-08 Thread Rootz
Can anyway give me advice as to how I would implement a CBV like formview to incorporate multiple forms in the class base view? I have (2) form class I would like for my FormView to use? But I am not sure how to do that with the FormView or any class base view. Thanks -- You received this mes

Re: Using proxy kind of Table in Admin Interface

2015-03-03 Thread Rootz
On Tuesday, March 3, 2015 at 12:26:05 AM UTC-5, Simon Charette wrote: > > Hi Rootz, > > Unfortunately there's a long standing ticket to solve inconsistency with > permissions for proxy models > <https://code.djangoproject.com/ticket/11154>so your chosen approac

Re: Using proxy kind of Table in Admin Interface

2015-03-02 Thread Rootz
ProxyManager() > > class Meta: > proxy = True > > > admin.py > > class MainModelAdmin(ModelAdmin): > """mother of all admin""" > ... > > > class MainModelProxyAdmin(MainModelAdmin): > #add salt to taste >

Using proxy kind of Table in Admin Interface

2015-03-02 Thread Rootz
Question. How would one go about designing the django table(s) so that I can assign each user account/group a different Model Manager using the same table in the Django admin interface? After doing some reading the closest that comes to this is the Proxy Model but I tried adding the proxy mode

Using proxy kind of Table in Admin Interface

2015-03-01 Thread Rootz
Question. How would one go about designing the django table(s) so that I can assign each user account/group a different Model Manager using the same table in the Django admin interface? After doing some reading the closest that comes to this is the Proxy Model but I tried adding the proxy mode

Re: Using Signals - request_finished

2015-02-26 Thread Rootz
thanks it worked On Thursday, February 26, 2015 at 5:54:02 AM UTC-5, Rodrigo Zayit wrote: > > put on your __init__.py file: > > from signals import request_finished_callback > > I guess it'll work. > > > Atenciosamente, > Rodrigo de Oliveira > &g

MySQLdb Missing Module errors

2015-02-25 Thread Rootz
I recently installed the django framework ( v1.7.4 ) and the mysql database connector ( pymysql ) for python. It is my understanding that the MySQLdb python connector is depreciated and is no longer available for download through PIP . However I installed pymysql which is an alternate download

Re: Using Signals - request_finished

2015-02-25 Thread Rootz
iver(request_finished) > def request_finished_callback(sender, **kwargs): > # . . . > > On Wednesday, 25 February 2015 14:01:24 UTC-3, Rootz wrote: >> >> I have tried using the request_finished signal but nothing happens when I >> tried testing it. >> Wha

Re: Using Signals - request_finished

2015-02-25 Thread Rootz
how do I load the signals file at the same point? On Wednesday, February 25, 2015 at 12:29:57 PM UTC-5, Vijay Khemlani wrote: > > is the signals.py module being loaded at some point? > > If it isn't, then the connect function is never being called. > > On Wed, Feb 25,

Using Signals - request_finished

2015-02-25 Thread Rootz
I have tried using the request_finished signal but nothing happens when I tried testing it. What suggestions or recommendations can I do to help fix the problem? Thank you. Below is a sample of the signals.py file (sample is taken from djangoproject.com ) ###SIGNALS.PY from django.core.sign

Re: Generic Views and Django.contrib.auth

2014-12-04 Thread Rootz
equired(AboutView.as_view()), name='about'), > ) > > Or better yet, patterns() is deprecated so: > > urlpatterns = [ > url(r'^about/', login_required(AboutView.as_view()), name='about'), > ] > > Collin > > On Wednesday, Decembe

Re: Redirect user inside Class-Based views

2014-12-03 Thread Rootz
2, 2014 4:10:40 PM UTC+1, Rootz wrote: >> >> thanks >> >> On Tuesday, December 2, 2014 9:22:32 AM UTC-5, Andréas Kühne wrote: >>> >>> 2014-12-02 15:17 GMT+01:00 Rootz : >>> >>>> I have a small Django App using several Class-Based Vi

Re: Generic Views and Django.contrib.auth

2014-12-03 Thread Rootz
On Sunday, November 30, 2014 11:07:42 PM UTC-5, Rootz wrote: >> >> Hi can this work with url reversing namespaced urls? >> thanks >> >> On Thursday, October 16, 2014 11:54:45 AM UTC-5, Vijay Khemlani wrote: >>> >>> If you are usign class based

Re: Generic Views and Django.contrib.auth

2014-12-03 Thread Rootz
Yes On Tuesday, December 2, 2014 10:05:35 PM UTC-5, Collin Anderson wrote: > > Hi, > > It's probably possible. Do you mean url reversing the login view, or url > reversing the view where login is required? > > Collin > > On Sunday, November 30, 2014 11:07:42 PM

Re: Redirect user inside Class-Based views

2014-12-02 Thread Rootz
thanks On Tuesday, December 2, 2014 9:22:32 AM UTC-5, Andréas Kühne wrote: > > 2014-12-02 15:17 GMT+01:00 Rootz >: > >> I have a small Django App using several Class-Based Views but I am >> contemplating how the class views would redirect a user based upon a >>

Re: Using login_required decorator

2014-12-02 Thread Rootz
Thanks I got it to work... On Tuesday, December 2, 2014 7:22:30 AM UTC-5, Daniel Roseman wrote: > > On Monday, 1 December 2014 23:59:00 UTC, Rootz wrote: >> >> I have a small project but I am trying to restrict access on some of the >> django app urls to login users o

Redirect user inside Class-Based views

2014-12-02 Thread Rootz
I have a small Django App using several Class-Based Views but I am contemplating how the class views would redirect a user based upon a condition? In my case I would like to redirect user who are not authenticated. Just how do I go about doing that? thanks -- You received this message because

Using login_required decorator

2014-12-01 Thread Rootz
I have a small project but I am trying to restrict access on some of the django app urls to login users only. The problem is that when I hit a page that requires login users I expected that they(users) are redirected to the login page however that is not the case of what happens instead they are

Re: Generic Views and Django.contrib.auth

2014-11-30 Thread Rootz
7;', > (r'^about/', login_required(AboutView.as_view())), > ) > > > On Thu, Oct 16, 2014 at 12:49 PM, Rootz > > wrote: > >> Can I use both Generic View and the Django.contrib.auth features (such as >> login_required decorator and other aut

Re: Simple Login Problem

2014-11-30 Thread Rootz
"register" page. > > If you press "back" after a successful login, the CSRF token will be out > of date and the form won't work. > > Are you caching any pages? > > Collin > > On Friday, November 28, 2014 12:55:35 AM UTC-5, Rootz wrote: >> &g

Simple Login Problem

2014-11-27 Thread Rootz
I have a django app but I having problems with my login views and logout views. I do not have a html template designated to handle user login/logout view. Django project is configured as follows: INSTALLED_APPS se

Re: Generic Views and Django.contrib.auth

2014-10-19 Thread Rootz
x27;, login_required(AboutView.as_view())), > ) > > > On Thu, Oct 16, 2014 at 12:49 PM, Rootz > > wrote: > >> Can I use both Generic View and the Django.contrib.auth features (such as >> login_required decorator and other auth interface tool)? And if it is not >> possibl

Generic Views and Django.contrib.auth

2014-10-16 Thread Rootz
Can I use both Generic View and the Django.contrib.auth features (such as login_required decorator and other auth interface tool)? And if it is not possible to integrate auth into Generic Views then can you recommend alternative way of making the two work together? Adding to this I am using Dja

file inserts

2013-10-23 Thread Rootz
Question How do one do file inserts less than 16 mb without gridfs? thank you -- 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...@googlegro

Re: DateTimeField stored as None

2013-02-03 Thread Rootz
Changing pub_date to DateField() class worked now and now I am able to see date values stored in the pub_date column. On Sunday, February 3, 2013 9:07:27 AM UTC-5, Rootz wrote: > > I made several attempts to store/update the current date in a model. I > used both admin page and the

DateTimeField stored as None

2013-02-03 Thread Rootz
I made several attempts to store/update the current date in a model. I used both admin page and the shell to save/update a datetimefield value of my model and then after querying the record it return None for datetimefield column. Secondly my method was_published_recently() does not work. I a