Django phone number validation

2017-06-20 Thread Santosh Yelamarthi
Hi All, Can anyone please share how to validate phone number in django. Thanks in advance. -- 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+unsubsc

Re: Non-primary auto-incrementing field with Postgres

2017-06-20 Thread Scot Hacker
One strategy might be to: 1) Bring in the data under a different column name ('old_id' ?) 2) In a single migration, drop the default ID column, rename old_id to id, and give it primary_key=True That should preserve your old IDs and set the next auto_increment to the next highest value (and if

Re: url patterns question

2017-06-20 Thread James Schneider
> > > > What did you base this on? Certainly not the python docs or behavior of > any pcre based library. > > Regular expressions are capitalist: greedy by default. > > The qualifiers *? are there especially to make a match non-greedy. > > > > Quick test: > > pcregrep -o '^.*:' /etc/passwd > > > >

Re: If you have multiple custom users - what should you set AUTH_USER_MODEL to?

2017-06-20 Thread Mike Dewhirst
On 20/06/2017 1:13 PM, Mike Dewhirst wrote: On 20/06/2017 2:22 AM, 'Victor Hooi' via Django users wrote: If you go down the user-profiles route - how would you handle managing each of those via the Django Admin? I use group permissions to reveal or hide models in the Admin main menu. I use a

Re: url patterns question

2017-06-20 Thread Melvyn Sopacua
On Monday 19 June 2017 16:43:12 James Schneider wrote: > But if I use the pattern: > > *urlpatterns = [ * > *url(r'^blank/.*$', views.BlankMore, name='blankMore'),* > *]* > > I can enter: > > localhost:8000/uA/blank/ > > and the pattern will match, but if I enter: > > localhost:

Re: import different entries using filter

2017-06-20 Thread Melvyn Sopacua
On Monday 19 June 2017 21:11:23 jon stan wrote: > im trying to display the products and service type based on the name > but i cant figure out how todo that. here's what i have: > > views.py > name = > food.objects.get(restaurant-name__icontains='burger-place') prod = > food.object

Re: Fwd: [django] Excluir un ítem de un dropdown en el admin de django

2017-06-20 Thread Melvyn Sopacua
On Tuesday 20 June 2017 02:24:20 Rafael E. Ferrero wrote: > The trouble it's because Firefighter class is a child of Person class > so the Firefighter item are in the two dropdowns and it shouldn't Are you sure a firefighter is a person? Or is it the person's job? Show your models, cause it's

Re: Django app to manage PHP-composer repositories

2017-06-20 Thread Melvyn Sopacua
On Tuesday 20 June 2017 17:41:03 Philipp Zedler wrote: > I'd like to manage composer packages using a Django App. (Composer is > the git of PHP, roughly speaking.) I'm gonna say you meant "pip" here. Or yarn. Or npm. But not git. > Is there already some Django App that does this? Not that I'm

Re: Django website

2017-06-20 Thread yingi keme
Is your project residing in django? Or you are using a different web framework? Yingi Kem > On 20 Jun 2017, at 7:24 PM, MigDotCom wrote: > > I want to use python and django to make a news-feed for my website I have > searched about it but i still don't even have clue where to start: > 1. Do i

Django website

2017-06-20 Thread MigDotCom
I want to use python and django to make a news-feed for my website I have searched about it but i still don't even have clue where to start: 1. Do i make it as a new app in my django site? 2. Where can i get this info or go back as reference ? 3. do i need any prerequisites before hand?(i.e: setti

Re: [django-channels] Issues with model post_save and Group.Send()

2017-06-20 Thread Andrew Godwin
Well, I need to know even a vague shape of what's happening to be able to help - is it getting stuck in an infinite loop? Is it running out of memory? Without this sort of information, I won't be able to find the problem, and I don't have time to go through the entire codebase line by line. Andrew

Django app to manage PHP-composer repositories

2017-06-20 Thread Philipp Zedler
Hi Django Users, I'd like to manage composer packages using a Django App. (Composer is the git of PHP, roughly speaking.) Is there already some Django App that does this? Best wishes Philipp P.S. I know that the essential features of such an app are very simple. However, I prefer collaborat