PostrgreSQL Inside Virtualenv

2018-01-24 Thread tango ward
Hi, Newbie question, since I installed django and pillow inside virtualenv, shall I also install PostgreSQL inside Virtualenv? At the moment I am still using SQLite in my pet project. Regards, Jarvis -- You received this message because you are subscribed to the Google Groups "Django users"

Re: PostrgreSQL Inside Virtualenv

2018-01-24 Thread 'Anoosha Masood Keen' via Django users
Hi tangoward15. No need to install PostgreSQl at this stage. Just continue with the tutorial. SQLite works fine. On Wednesday, January 24, 2018 at 8:49:17 AM UTC, tangoward15 wrote: > > > Hi, > > > Newbie question, since I installed django and pillow inside virtualenv, > shall I also install Pos

Re: PostrgreSQL Inside Virtualenv

2018-01-24 Thread tango ward
Hi Anoosha, Thanks for the response. I'm just curious if the installation of PostgreSQL should be inside Virtualenv too or should it be installed directly into the computer. On Wed, Jan 24, 2018 at 4:55 PM, 'Anoosha Masood Keen' via Django users < django-users@googlegroups.com> wrote: > > Hi ta

Re: PostrgreSQL Inside Virtualenv

2018-01-24 Thread Andréas Kühne
Hi, The virtualenv is only for python things (django, pillow, the postgres connector). Postgres itself is a database server and needs to be installed on the host that you want to communicate with. It cannot be installed "only" in the virtualenv. Regards, Andréas 2018-01-24 9:59 GMT+01:00 tango

Re: How to autoGenerate C bindings for Django 1.11 ?

2018-01-24 Thread Etienne Robillard
Hi Avraham On Tuesday, 23 January 2018 17:18:19 UTC-5, Avraham Serour wrote: > > Did you try doing this and see what happens? > Not yet. But I presume I could just use the libdjango.so shared library as a replacement for the django package? Regards, Etienne > > On 23 Jan 2018 9:56 PM, "Etien

Re: PostrgreSQL Inside Virtualenv

2018-01-24 Thread tango ward
Got it. Thanks Andréas On Wed, Jan 24, 2018 at 5:12 PM, Andréas Kühne wrote: > Hi, > > The virtualenv is only for python things (django, pillow, the postgres > connector). Postgres itself is a database server and needs to be installed > on the host that you want to communicate with. It cannot be

Re: unable to save object Django (2.0)

2018-01-24 Thread 'Anoosha Masood Keen' via Django users
Try this in models.py file *class personmanager(models.Model):notes = models.TextField()link = models.URLField()number = models.IntegerField()def create_person(self,note,link,number):self.notes=note self.link=linkself.number=number

Re: PostrgreSQL Inside Virtualenv

2018-01-24 Thread 'Anoosha Masood Keen' via Django users
Install it on your computer. On Wednesday, January 24, 2018 at 8:49:17 AM UTC, tangoward15 wrote: > > > Hi, > > > Newbie question, since I installed django and pillow inside virtualenv, > shall I also install PostgreSQL inside Virtualenv? At the moment I am still > using SQLite in my pet project

Re: PostrgreSQL Inside Virtualenv

2018-01-24 Thread tango ward
Got it. Thanks Anoosha On Wed, Jan 24, 2018 at 5:29 PM, 'Anoosha Masood Keen' via Django users < django-users@googlegroups.com> wrote: > Install it on your computer. > > On Wednesday, January 24, 2018 at 8:49:17 AM UTC, tangoward15 wrote: > >> >> Hi, >> >> >> Newbie question, since I installed dj

Re: PostrgreSQL Inside Virtualenv

2018-01-24 Thread Avraham Serour
In any case you'll need to pip install the postgres drivers for python, I suggest doing that inside the env On Wed, Jan 24, 2018 at 11:32 AM, tango ward wrote: > Got it. Thanks Anoosha > > On Wed, Jan 24, 2018 at 5:29 PM, 'Anoosha Masood Keen' via Django users < > django-users@googlegroups.com>

Re: How to autoGenerate C bindings for Django 1.11 ?

2018-01-24 Thread Avraham Serour
please try and share your findings, I'm sure I'm not the only one curious about this On Wed, Jan 24, 2018 at 11:21 AM, Etienne Robillard wrote: > Hi Avraham > > On Tuesday, 23 January 2018 17:18:19 UTC-5, Avraham Serour wrote: >> >> Did you try doing this and see what happens? >> > > Not yet. B

Re: Will django include a simpler way to change username to email for registration in the future ?

2018-01-24 Thread Avraham Serour
someone posted an app for that here w while ago: http://django-improved-user.readthedocs.io/en/latest/index.html On Wed, Jan 24, 2018 at 1:23 AM, Vijay Khemlani wrote: > I have been using django-custom-user for that without any issues > > On Tue, Jan 23, 2018 at 6:43 PM, Daniel Cîrstea < > da

Re: PostrgreSQL Inside Virtualenv

2018-01-24 Thread tango ward
Noted. Thanks On Wed, Jan 24, 2018 at 5:56 PM, Avraham Serour wrote: > In any case you'll need to pip install the postgres drivers for python, I > suggest doing that inside the env > > > On Wed, Jan 24, 2018 at 11:32 AM, tango ward > wrote: > >> Got it. Thanks Anoosha >> >> On Wed, Jan 24, 2018

Re: Will django include a simpler way to change username to email for registration in the future ?

2018-01-24 Thread Nick Sarbicki
django allauth (http://django-allauth.readthedocs.io/en/latest/overview.html) also has a pretty good setup for this as well as a lot of other functionality. As suggested it just takes a change in settings.py to move to email as username (although it isn't stored that way in the DB that is how it lo

Re: How to autoGenerate C bindings for Django 1.11 ?

2018-01-24 Thread Jason
I'm curious about this to, but am struggling to see the use case for this. Could you elaborate on how you'd use something like this, and its expected benefits? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: How to autoGenerate C bindings for Django 1.11 ?

2018-01-24 Thread Etienne Robillard
Hi Jason, Le 2018-01-24 à 06:11, Jason a écrit : I'm curious about this to, but am struggling to see the use case for this.  Could you elaborate on how you'd use something like this, and its expected benefits? The goal would be to use faster C code for accessing Django internal api. Then I s

Re: django 2 - How do I make search box?

2018-01-24 Thread Ozzy Walsh
On Tuesday, January 23, 2018 at 11:34:48 AM UTC, Carl Brubaker wrote: > > I am trying to make a search field in a template and connect it back to my > database so I can "find" stuff. > > I found this in the django docs: > > >>> Author.objects.filter(name__unaccent__icontains='Helen')[ >>> Mirren

One model interface to read/write to multiple models Django

2018-01-24 Thread Chinmaya Patanaik
I've the following models in Django. class User(models.Model): name = models.CharField(max_length=50) ... ... class UserInformation(models.Model): user = models.ForeignKey(User) key = models.CharField(max_length=250) value = models.TextField() .

how do I handle a dropdown in Django whose only purpose is to get data.

2018-01-24 Thread eileen
I need to create an edit box called handicapped with three drop down options on the display: 0 - none 1 - Mental 2 - Phyiscal and connect it to the handicapped field init(11) in the family database I know I have to do something like: if form['handicapped'].data == 1 or 2:

Re: Getting Outlook Calendar In Django web page

2018-01-24 Thread Harrison Latimer
I've looked through this library but I can't seem to find a way to get an existing calendar from outlook just ones you create using the exchangelib functionality. Has anyone used exchangelib to generate a static calendar to a django web page? On Wednesday, January 17, 2018 at 2:20:29 PM UTC-8,

Re: PostrgreSQL Inside Virtualenv

2018-01-24 Thread johnf
I doubt it is possible to install Postgres into virtualenv??? At least I'm not aware that it can be done.  I'll do a little research and see if I can be done.  Of course it can be installed on VM. Johnf On 01/24/2018 02:25 AM, tango ward wrote: Noted. Thanks On Wed, Jan 24, 2018 at 5:56 PM

Re: django 2 - How do I make search box?

2018-01-24 Thread Ozzy Walsh
Also, by the sounds of your question, you haven't worked through the tutorial. Please take the time to do so. It might take you around an hour or whatever but gives an extremely good overview of everything you need to build stuff in Django. I'm sure your dying to work on your big idea, but it pa

the version 2.0.1 login function refuses to take arguments... Login(request user)

2018-01-24 Thread simon munuve
Check the attached file ... -- 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 djan

Re: the version 2.0.1 login function refuses to take arguments... Login(request user)

2018-01-24 Thread Ozzy Walsh
It would be helpful if you included the code associated with this as well. On Thursday, January 25, 2018 at 12:37:24 AM UTC, simon munuve wrote: > > Check the attached file ... > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe f

Re: the version 2.0.1 login function refuses to take arguments... Login(request user)

2018-01-24 Thread Ozzy Walsh
On Thursday, January 25, 2018 at 4:50:10 AM UTC, Ozzy Walsh wrote: > > It would be helpful if you included the code associated with this as well. > > On Thursday, January 25, 2018 at 12:37:24 AM UTC, simon munuve wrote: >> >> Check the attached file ... >> > The actual code. Nobody can tell how

Contributing to Django

2018-01-24 Thread 'Anoosha Masood Keen' via Django users
Hi, I have assigned a ticket to myself. Now what do I need to do ? Fork django project and create branch for that ticket and push it ? Am I right? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop recei