Re: Django URLS

2016-11-17 Thread Antonis Christofides
Hi,

Could you explain a bit better what you want and what you have achieved so far?
Could you show us your urls.py and/or nginx or apache configuration?

Regards,

Antonis

Antonis Christofides
http://djangodeployment.com

On 2016-11-17 20:17, Lekan Wahab wrote:
> If i have a url like *fruits.com *, does anyone know how i
> can write my subdomain urls in django to be *apple.fruits.com
> * instead of *fruits.com/apple*
>  ?
>
> -- 
> 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 to this group, send email to django-users@googlegroups.com
> .
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAE6v7odjAUgPXgeU6c%2BTuxVbFTx%3Dgzmp%3DFUboyD1tm1kWgMo5g%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.

-- 
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 to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/87946ad5-0039-7dff-34a7-80dd8d14dd27%40djangodeployment.com.
For more options, visit https://groups.google.com/d/optout.


Re: I don't understand the second paragraph on the Getting Started with Channels documentation

2016-11-17 Thread Andrew Godwin
Yes, this means "once you have installed channels", since it's in the
channels documentation. I'll update that line to mention "with channels".

Andrew

On Thu, Nov 17, 2016 at 2:13 PM,  wrote:

> When you run Django out of the box, it will be set up in the default
>> layout - where all HTTP requests (on the http.request channel) are
>> routed to the Django view layer.
>
>
> What is meant with "on the http.request channel" in the context of "out
> of the box"? Out of the box Django does not know channels.
>
> {I actually re-read that paragraph a couple of times at this point.}
>
> Okay ... do they mean *after* I installed Channels? Because then maybe it
> would be better to say "When you run Django with Channels out of the box".
> People like me who never got really serious with Django and want to have a
> quick look at some Channels code may be confused by that sentence in that
> way.
>
> Cheers.
>
> --
> 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 to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/04a560fd-148b-40a6-abb0-a24438ff3509%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFwN1upy9PEVr0cdWJsptE8WsUvY9ZJYndqzDe7p9mNmV3jZ8w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


I don't understand the second paragraph on the Getting Started with Channels documentation

2016-11-17 Thread psaod8fza9s

>
> When you run Django out of the box, it will be set up in the default 
> layout - where all HTTP requests (on the http.request channel) are routed 
> to the Django view layer.


What is meant with "on the http.request channel" in the context of "out of 
the box"? Out of the box Django does not know channels.

{I actually re-read that paragraph a couple of times at this point.}

Okay ... do they mean *after* I installed Channels? Because then maybe it 
would be better to say "When you run Django with Channels out of the box". 
People like me who never got really serious with Django and want to have a 
quick look at some Channels code may be confused by that sentence in that 
way.

Cheers.

-- 
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 to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/04a560fd-148b-40a6-abb0-a24438ff3509%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Annotate a List of Values

2016-11-17 Thread Matthew Pava
I am trying to annotate a list of values on a queryset.
Basically, I have a model of Items that are associated many to many to Serial 
Numbers, and I want for each distinct Item the list of all Serial Numbers for 
that Item.

-- 
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 to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/06b0691008e84a15b768abd658d1bc38%40ISS1.ISS.LOCAL.
For more options, visit https://groups.google.com/d/optout.


Django URLS

2016-11-17 Thread Lekan Wahab
If i have a url like *fruits.com*, does anyone know how i can write my
subdomain urls in django to be *apple.fruits.com* instead of *
fruits.com/apple* ?

-- 
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 to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAE6v7odjAUgPXgeU6c%2BTuxVbFTx%3Dgzmp%3DFUboyD1tm1kWgMo5g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


MultiTenant Connections

2016-11-17 Thread Emanuel Araújo
Hi,

I need to implement multiconnections on distinct customers on my app.
the cenario is:
I have a website and my customers put on form a username.  So, I need that 
Django connect on postgresql setting schema-name same a username on 
request.  When I connect on postgresql with a username, the search_path is 
automatic set to same username.  It's ok.
A each connection must to set the username and search_path, cause each user 
has a unique schema on database.
This situation is ok when I had few customers, but now, a lot of customers 
are sign and I don't restart app when exists connections actives.
How to do that?  I Created a new schema on postgresql, created a new 
objects but I need that my app find it whitout restart django server.

Thanks! 

-- 
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 to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5b799777-7811-4486-be1e-63d44b40f4e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to hook into the admin site to count login attempts with REST API / proxy?

2016-11-17 Thread T Thomas


Hi Daniel,

 

Hope this email finds you well! We are App Innovation Technologies 
 expertise in Microsoft SharePoint, with the 
latest .NET Framework 3.5, 4.0 and 4.5 and sound knowledge in developing 
WPF based window and web applications. We use PHP, Word-Press and other 
open source technologies for website development and on mobile we work on 
iOS, Android and Windows applications. 

 

 Our lab is equipped with dedicated TFS 2012, MS SQL server 2012, MS 
SharePoint 2010 Enterprise servers in the base of Windows Server 2012 and 
Windows Server 2012 R2. We offer good quality work on a reasonable cost.

 

If you have any project, Please let me know.

 

Our work:

1. ASP.Net / .Net 

2. Website 

3. iOS Application 

 

 Thanks & Regards,

Thomas Russell

+1-224-636-9884 

App Innovation Technologies 




On Friday, November 4, 2016 at 10:16:20 PM UTC+5:30, Daniel Grace wrote:
>
> Hello, I have a REST API which is not publicly accessible as it is behind 
> a proxy.  However the admin site is publicly available through an NGINX 
> server.  The REST API already has functionality to count failed login 
> attempts and I would like to duplicate that functionality on the admin 
> login page.  How do I hook into the admin login page and add the 
> appropriate code?  Can I still use Django Axes or should I create my own 
> login form as a replacement?
> Thanks
>

-- 
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 to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/abd37173-59f6-45b9-8574-5419cf9400e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Do you modify third party code used in your projects?

2016-11-17 Thread T Thomas


Hi ,

 

Hope this email finds you well! We are App Innovation Technologies 
 expertise in Microsoft SharePoint, with the 
latest .NET Framework 3.5, 4.0 and 4.5 and sound knowledge in developing 
WPF based window and web applications. We use PHP, Word-Press and other 
open source technologies for website development and on mobile we work on 
iOS, Android and Windows applications. 

 

 Our lab is equipped with dedicated TFS 2012, MS SQL server 2012, MS 
SharePoint 2010 Enterprise servers in the base of Windows Server 2012 and 
Windows Server 2012 R2. We offer good quality work on a reasonable cost.

 

If you have any project, Please let me know.

 

Our work:

1. ASP.Net / .Net 

2. Website 

3. iOS Application 

  

Thanks & Regards,

Thomas Russell

+1-224-636-9884 

App Innovation Technologies 

On Thursday, November 3, 2016 at 2:49:27 PM UTC+5:30, Peter Dermott wrote:
>
> I'm currently working on my first Django app after years of working with 
> WordPress and right now I'm feeling a little lost so please be gentle.
>
>
> I'm using the Mezzanine / Cartridge combo to set up an online store for 
> the company I'm working with, so far I've been extending the base cartridge 
> models and overriding templates to do what I need (adding extra fields, 
> different types of product variations etc) but over the last few days there 
> have been a couple of instances where I've hit brick walls.
>
>
> The first is using the SagePay payment processor. The SagePay docs aren't 
> really aimed at django or python and the django-payments app I've been 
> looking at wants to use its own form in order to accept the card details. 
> The Cartridge form system is a little confusing to me and it doesn't appear 
> to be too friendly to messing with it.
>
>
> The second is something even simpler where I just want to adjust the way 
> that product variations are output in the cart, again though the forms 
> system was getting in the way so I've resorted to a pretty disgusting hack 
> to get it to do what I need.
>
>
> So, to the question...Would it be OK just to clone the Cartridge app in my 
> project and make all the overrides I need there? Would this cause massive 
> pain when new releases comes out? Are there any other potential drawbacks I 
> should be aware of and what is considered the best practice with this?
>

-- 
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 to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e0e52fd1-8346-4a50-bc20-14ccfa17be10%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django Docs not returning search results - 1.10

2016-11-17 Thread Tim Graham
It's a known issue: https://github.com/django/djangoproject.com/issues/713

The Django docs don't contain information about third-party packages, 
however, so searching there to find information about kivy isn't the 
correct place.

On Thursday, November 17, 2016 at 4:23:40 AM UTC-5, Sayth Renshaw wrote:
>
> Hi
>
> Trying to check if this is an odd problem I am expereincing or there is an 
> issue. 
>
> I have tried searching the django docs for Kivy in regards to the 
> https://pypi.python.org/pypi/kivy-django/1.9.1 package which refers to 
> the docs for further information.
> Search terms used:
> kivy
> kivy-django
>
> Both return a header advising 370 results "370 results for *kivy-django* in 
> version 1.10". There is however no actual search results displaying below.
> Tried on Firefox and chrome on multiple computers and chrome on android 
> phone all the same.
>
> Any ideas whats occurring?
>
> Sayth
>

-- 
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 to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5cc204b3-f167-4dc5-9cd1-1cc91bc81807%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django Docs not returning search results - 1.10

2016-11-17 Thread Fabio C. Barrionuevo da Luz
kivy-django is not a Django Software Foundation project and i don't know
who is creator and owner of this project


-- 

Fábio C. Barrionuevo da Luz

Em 17/11/2016 06:23, "Sayth Renshaw"  escreveu:

> Hi
>
> Trying to check if this is an odd problem I am expereincing or there is an
> issue.
>
> I have tried searching the django docs for Kivy in regards to the
> https://pypi.python.org/pypi/kivy-django/1.9.1 package which refers to
> the docs for further information.
> Search terms used:
> kivy
> kivy-django
>
> Both return a header advising 370 results "370 results for *kivy-django* in
> version 1.10". There is however no actual search results displaying below.
> Tried on Firefox and chrome on multiple computers and chrome on android
> phone all the same.
>
> Any ideas whats occurring?
>
> Sayth
>
> --
> 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 to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/cb578d5d-3796-48fa-b1d5-a1f959dd78b3%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPVjvMat2V%2BU%3Dgejs8KqERmeUbdePYiDTqQY-tiZE5CdKXgBbA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Django Docs not returning search results - 1.10

2016-11-17 Thread Sayth Renshaw
Hi

Trying to check if this is an odd problem I am expereincing or there is an 
issue. 

I have tried searching the django docs for Kivy in regards to 
the https://pypi.python.org/pypi/kivy-django/1.9.1 package which refers to 
the docs for further information.
Search terms used:
kivy
kivy-django

Both return a header advising 370 results "370 results for *kivy-django* in 
version 1.10". There is however no actual search results displaying below.
Tried on Firefox and chrome on multiple computers and chrome on android 
phone all the same.

Any ideas whats occurring?

Sayth

-- 
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 to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/cb578d5d-3796-48fa-b1d5-a1f959dd78b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.