Re: django 2 under python 2

2018-01-25 Thread James Bennett
You should be seeing a message like this:

==
Unsupported Python version
==

This version of Django requires Python 3.4, but you're trying to
install it on Python 2.7.

This may be because you are using a version of pip that doesn't
understand the python_requires classifier. Make sure you
have pip >= 9.0 and setuptools >= 24.2, then try again:

$ python -m pip install --upgrade pip setuptools
$ python -m pip install django

This will install the latest version of Django which works on your
version of Python. If you can't upgrade your pip (or Python), request
an older version of Django:

$ python -m pip install "django<2"

Which is output by Django when an install is attempted on Python 2.

-- 
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/CAL13Cg8b-uGE4PRN08yf_KRUHqqotR7q5_AmGQX%2Bw9K_G_%3Dt_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: django 2 under python 2

2018-01-25 Thread Nick Sarbicki
Looks like a pypi "feature". You should pin your dependencies.

On Fri, 26 Jan 2018, 00:08 Mirek Zvolsky,  wrote:

> Isn't the question a little oposite, Avraham ??
>
>
>
> Dne čtvrtek 25. ledna 2018 22:42:37 UTC+1 Avraham Serour napsal(a):
>>
>> > I wonder why this is happening...
>> because django 2 doesn't support python 2
>>
>> I suggest using python 3.6
>>
> On Thu, Jan 25, 2018 at 9:50 PM, Andy  wrote:
>>
> Hi!
>>>
>>> pip inside a python2 virtualenv will try to install django 2, which aint
>>> working and will fail.
>>> I wonder why this is happening because for instance if i install ipython
>>> in that same virtualenv pip wont try to install version 6.x because its
>>> marked as python3 only. It seems django 2 is missing some soft of flag that
>>> is present at the ipython package and tells pip to install the old ipython
>>> 5.5 rather than anythin above that.
>>>
>>> Does anyone know whats causing 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...@googlegroups.com.
>>> To post to this group, send email to django...@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/eed0e673-56e9-476b-9030-b81a18c531a8%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/5d131349-e94b-4aa6-be23-092549e10b47%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/CAGuvt93kyULs4e%2BQgF_x%3DGquvWdv3vSQ7F%3DD2SzngqwAKaBqaA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [python-uk] Setting up Django on Google Cloud (basic server)

2018-01-25 Thread Nick Sarbicki
There was a discussion on a slack channel a few days ago with someone who,
suspiciously, had the same name and problem. They'd tried to set up
firewall rules (not sure they worked) and was trying to get it running via
port 80 with gunicorn. Haven't heard anything else so assuming fixed.

On Thu, 25 Jan 2018, 19:31 Matt Wheeler,  wrote:

> On Sat, 20 Jan 2018 at 14:52 Samuel Muiruri 
> wrote:
>
>> I had this issue before with AWS i remember it was just as stressful then
>> and actually can't remember what actually fixed it. I basically have a
>> clean Ubuntu VM which I followed this guide
>> https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04
>> step by step on creating and hosting django on a site.
>>
>> Every step worked smoothly until this point when I need to run the
>> command "python manage.py runserver 0.0.0.0:8000" which starts the
>> service (shown on the attached screenshot) (also is the google cloud page
>> showing the given external ip) according to this with the server waiting
>> visiting http://35.227.49.155:8000/ should bring the site or something
>> but it fails to connect i get "
>> This site can’t be reached
>>
> Have you checked the firewall rules?
> I would suggest adding a tag to your Instance and then creating a firewall
> rule for the same tag which allows port 8000 TCP ingress.
>
> See https://cloud.google.com/vpc/docs/firewalls#default_firewall_rules
> --
>
> --
> Matt Wheeler
> http://funkyh.at
> ___
> python-uk mailing list
> python...@python.org
> https://mail.python.org/mailman/listinfo/python-uk
>

-- 
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/CAGuvt90Atjz_O4Wd4MxeB70igpg%2B5nfBRg-BAgDoTMO9S%2BJG1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Deploying SSL for my Django 2.0.1 server with Apache on Ubuntu 16.04 (droplet)

2018-01-25 Thread drone4four


You’re right, @Antonis, that I don’t want my Django source code exposed. No 
sysadmin would.  I have since moved my Django project folder to my home 
user’s directory. However (out of curiosity), if I continued to house 
Django in my public_html folder (which I am not any more, but say if i did) 
I would think that my .htaccess config file would prevent unauthorized 
access to my Django source.  Am I right?

I didn’t realize that Django was suppose to be run using wsgi.  I was just 
foolishly running the server with ``$ python manage.py runserver 
0.0.0.0:8000`` like when I was testing locally when I was coding my app. 
The keyword here is mod_wsgi.  So I found this guide 
.
 
I followed along but the issue I now have is that Apache serves my 
public_html folder (just some light  HTML, CSS and Js).  Serving these 
contents take priority over Django.  I’m OK with this. I would prefer to 
keep my public_html folder accessible as it is, but how do I arrange for 
wsgi to serve Django from a subdirectory, say: www.angeles4four.info/cel2fah 
or something like that? 

@Mulianto:

An example of a static file would be a style sheet, like: 
~/cel2fah/static/admin/css/responsive.css

How would trying to access this CSS file help?

I tried: 

http://www.angeles4four.info:8000/cel2fah/static/admin/css/responsive.css 

https://www.angeles4four.info:8000/cel2fah/static/admin/css/responsive.css 
 

Both show “This site can’t be reached”

Here are the contents of my two apache configuration files.

/etc/apache2/sites-available/angeles4four.info.conf :





ServerAdmin coffee.drinker.dan...@gmail.com

ServerName angeles4four.info

ServerAlias www.angeles4four.info

DocumentRoot /var/www/html/angeles4four.info/public_html




Options Indexes FollowSymlinks

AllowOverride All

Require all granted




ErrorLog ${APACHE_LOG_DIR}/error.log

CustomLog ${APACHE_LOG_DIR}/access.log combined


RewriteEngine on

RewriteCond %{SERVER_NAME} =angeles4four.info [OR]

RewriteCond %{SERVER_NAME} =www.angeles4four.info

RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} 
[END,NE,R=permanent]


Alias /static /home/tranq/cel2fah/static




Require all granted








Require all granted






WSGIDaemonProcess cel2fah python-path=/home/tranq/cel2fah 
python-home=/home/tranq/cel2fah/venv

WSGIProcessGroup cel2fah

WSGIScriptAlias / /home/tranq/cel2fah/cel2fah/wsgi.py






And /etc/apache2/sites-available/angeles4four.info.conf :







ServerAdmin coffee.drinker.dan...@gmail.com

ServerName angeles4four.info

ServerAlias www.angeles4four.info

DocumentRoot /var/www/html/angeles4four.info/public_html



ErrorLog ${APACHE_LOG_DIR}/error.log

CustomLog ${APACHE_LOG_DIR}/access.log combined


Alias /static /home/tranq/cel2fah/static




Require all granted








Require all granted






# WSGIDaemonProcess cel2fah python-path=/home/tranq/cel2fah 
python-home=/home/tranq/cel2fah/venv

# WSGIProcessGroup cel2fah

# WSGIScriptAlias / /home/tranq/cel2fah/cel2fah/wsgi.py


SSLCertificateFile /etc/letsencrypt/live/angeles4four.info/cert.pem

SSLCertificateKeyFile 
/etc/letsencrypt/live/angeles4four.info/privkey.pem

Include /etc/letsencrypt/options-ssl-apache.conf

SSLCertificateChainFile 
/etc/letsencrypt/live/angeles4four.info/chain.pem







Thanks to you both for your help so far.

On Saturday, January 20, 2018 at 10:00:57 PM UTC-5, drone4four wrote:
>
> I’ve played with a little Django (v2.0.1) locally. Now I am trying to 
> implement a test case on my production Apache web server. I’m running an 
> Ubuntu 14.04 DigitalOcean droplet (will upgrade to 18.04 later this year).
>
> I got Django running.
>
> Here it is: http://www.angeles4four.info:8000/
>
> Before I log into my admin panel, I figure it’s best practices to set up 
> HTTPS first. But when I visit that URL, Chrome throws this message:
>
>
> This site can’t provide a secure connection http://www.angeles4four.info 
>> sent an invalid response. ERR_SSL_PROTOCOL_ERROR
>
>
> And my shell on my server shows this message:
>
> [20/Jan/2018 23:54:39] "GET / HTTP/1.1" 200 16559 [21/Jan/2018 00:01:23] 
>> code 400, message Bad request syntax 
>> ('\x16\x03\x01\x00Ì\x01\x00\x00È\x03\x03&6U\x10µ\x82\x97\x7f´8\x1e«\x0e¿ÿ§\x89æ\x82\r¢G§\x01ç°P%\x80)ÕÃ\x00\x00\x1c
>>  
>> * À+À/À,À0̨̩À\x13À\x14\x00\x9c\x00\x9d\x00/\x005\x00') 

Re: url issues

2018-01-25 Thread Omar Abou Mrad
On Fri, Jan 26, 2018 at 3:01 AM, sum abiut  wrote:

> Hi,
> i am having some issues with my url pattern. i can't seem to figure out
> the problem. i am running django 1.11.
>
> <.. snip..>
> urls.py
> from django.conf.urls import url
> from django.contrib import admin
>
> from . import views
>
>
> urlpatterns = [
> url(r'^$',views.login,name='login'),
>
> #url('', views.edit_user),
> url(r'success/$', views.success),
>
> ]
>
>
What's confusing you is the '^$' pattern which you believe should be
activated if you navigate to "http://localhost:8000/; where in fact this
will point to the root url module under your rbv_payslip package.

That root url module has a pattern called "userprofile" which in turn
includes the url file you posted above. If you look closely at the error
you're getting, django is telling you that it could not find the pattern
you tried, but it found "admin" and "userprofile". The latter should
work for you.

Have a look at this part of the tutorial:

https://docs.djangoproject.com/en/1.11/intro/tutorial01/#write-your-first-view

Regards,

-- 
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/CAFwtXp2MZDC8Hj7styWQNDWPtJWBCv6D4vsoczVqO094CZXu1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: unable to save object Django (2.0)

2018-01-25 Thread Omar Abou Mrad
On Tue, Jan 23, 2018 at 10:10 PM, harsh sharma 
wrote:

> i am trying to save the basic information about a person
> i have created a model form for it but i am unable to save the object
> (unable to update the database)
>
> here is my views file
>
> @login_required
> def dashboard(request):
> if request.method=="post":
> form = linkform(request.POST)
> if form.is_valid():
> try:
> notes = form.cleaned_data['note']
> link = form.cleaned_data['link']
> number = form.cleaned_data['number']
> perso = person.object.create_person(notes,link,number)
> perso.save()
> return HttpResponse('succeess')
> except:
>
>
Your "except" swallows the exceptions that are happening and you're unable
to figure out the reason it's failing.


> class personmanager(models.Manager):
> def create_person(self,note,link,number):
> pers = self.create(note=note,link=link,number=number)
> return pers
>
>
The problem is due to your use of "note" whereas the field name
is actually "notes" (plural)

Finally, the entire "create_person" serves no purpose as you're just
aliasing "create"

person.object.create_person(a=a, b=b, c=c)
Person.objects.create(a=a, b=b, c=c)

Regards,

-- 
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/CAFwtXp2T9MvcF3QpC7W4i%2B8QL8VQZLt9HVUbRe%3DBpugPUSxwnQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: PostrgreSQL Inside Virtualenv

2018-01-25 Thread bootcamprag
Thanks again. 

On Thursday, January 25, 2018 at 3:16:05 PM UTC-8, yingi keme wrote:
>
> Its a pip install. 
>
> Yingi Kem 
>
> > On 25 Jan 2018, at 8:50 PM, bootcamprag  > wrote: 
> > 
> > Will that be a Pip install or from some other source? 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...@googlegroups.com . 
> > To post to this group, send email to django...@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/bb0fcf30-0ff0-4c74-af69-5633acaa3250%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/55c43909-ffc7-4289-9725-1cbce9223ab8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django 2 under python 2

2018-01-25 Thread Mirek Zvolsky
Isn't the question a little oposite, Avraham ??



Dne čtvrtek 25. ledna 2018 22:42:37 UTC+1 Avraham Serour napsal(a):
>
> > I wonder why this is happening...
> because django 2 doesn't support python 2
>
> I suggest using python 3.6
>
> On Thu, Jan 25, 2018 at 9:50 PM, Andy  
> wrote:
>
>> Hi!
>>
>> pip inside a python2 virtualenv will try to install django 2, which aint 
>> working and will fail.
>> I wonder why this is happening because for instance if i install ipython 
>> in that same virtualenv pip wont try to install version 6.x because its 
>> marked as python3 only. It seems django 2 is missing some soft of flag that 
>> is present at the ipython package and tells pip to install the old ipython 
>> 5.5 rather than anythin above that.
>>
>> Does anyone know whats causing 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...@googlegroups.com .
>> To post to this group, send email to django...@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/eed0e673-56e9-476b-9030-b81a18c531a8%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/5d131349-e94b-4aa6-be23-092549e10b47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: PostrgreSQL Inside Virtualenv

2018-01-25 Thread yingi keme
Its a pip install.

Yingi Kem

> On 25 Jan 2018, at 8:50 PM, bootcamprag  wrote:
> 
> Will that be a Pip install or from some other source? 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/bb0fcf30-0ff0-4c74-af69-5633acaa3250%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/042AA3E4-F952-4006-8D2C-1BEB93339B86%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: django 2 under python 2

2018-01-25 Thread Avraham Serour
> I wonder why this is happening...
because django 2 doesn't support python 2

I suggest using python 3.6

On Thu, Jan 25, 2018 at 9:50 PM, Andy  wrote:

> Hi!
>
> pip inside a python2 virtualenv will try to install django 2, which aint
> working and will fail.
> I wonder why this is happening because for instance if i install ipython
> in that same virtualenv pip wont try to install version 6.x because its
> marked as python3 only. It seems django 2 is missing some soft of flag that
> is present at the ipython package and tells pip to install the old ipython
> 5.5 rather than anythin above that.
>
> Does anyone know whats causing 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/eed0e673-56e9-476b-9030-b81a18c531a8%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/CAFWa6tKhcj1Mauf967dL6-bfypih7L7-r1XkLEyb6Oa5QizEMg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: PostrgreSQL Inside Virtualenv

2018-01-25 Thread bootcamprag
Will that be a Pip install or from some other source? 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/bb0fcf30-0ff0-4c74-af69-5633acaa3250%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django Rest Framework: Get Data from an external apis

2018-01-25 Thread Andy
you dont have to define any route when getting data from an external api, 
just use requests.get('https://api.test.com/consumers') to get your data

-- 
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/c89a6f33-66bd-4e17-9462-a37e86290a41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: unable to save object Django (2.0)

2018-01-25 Thread Andy
what is the actual error message?

Am Dienstag, 23. Januar 2018 21:10:00 UTC+1 schrieb harsh sharma:
>
> i am trying to save the basic information about a person 
> i have created a model form for it but i am unable to save the object 
> (unable to update the database)
>
> here is my views file
>
> @login_required
> def dashboard(request):
> if request.method=="post":
> form = linkform(request.POST)
> if form.is_valid():
> try:
> notes = form.cleaned_data['note']
> link = form.cleaned_data['link']
> number = form.cleaned_data['number']
> perso = person.object.create_person(notes,link,number)
> perso.save()
> return HttpResponse('succeess')
> except:
> return HttpResponse('can not create object')
> else:
> return HttpResponse('bad form')
> else:
> form = linkform(request.POST)
> return render(request, 'dashboard.html', {'form':form})
>
>
> here is my model file :
>
> class personmanager(models.Manager):
> def create_person(self,note,link,number):
> pers = self.create(note=note,link=link,number=number)
> return pers
>
>
>
> class person(models.Model):
> notes = models.TextField()
> link = models.URLField()
> number = models.IntegerField()
> object = personmanager()
>
>

-- 
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/4fe77994-e6c3-4d28-a9ce-157bb127ad67%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


django 2 under python 2

2018-01-25 Thread Andy
Hi!

pip inside a python2 virtualenv will try to install django 2, which aint 
working and will fail.
I wonder why this is happening because for instance if i install ipython in 
that same virtualenv pip wont try to install version 6.x because its marked 
as python3 only. It seems django 2 is missing some soft of flag that is 
present at the ipython package and tells pip to install the old ipython 5.5 
rather than anythin above that.

Does anyone know whats causing 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/eed0e673-56e9-476b-9030-b81a18c531a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


weird manager bug

2018-01-25 Thread Andy
Hi,

i have created a module for django that basically gives me shadow db with 
all deleted data and hides all that from django by the use of a custom (not 
deleted) data manager.
So far so good - this works really well, but lately i finally wrote some 
tests for this project and discovered a weird bug where the custom manager 
will not be present on the model.

This is the workaround ( custom manager definition 

 
) but if i rewrite this to the old version of data = objects = 
DataManager() it will most certainly fail under python2 and (thats the 
weirdes part) fail sometimes under python 3. Have a look at the build 
history at https://travis-ci.org/kakulukia/django-undeletable/builds (#17 - 
#40). I tried a lot of stuff until i found the solution to actually make 
the tests work.

But now id like to know what was happening? Why was that failing SOMETIMES? 
Like totally random on python3?
Does somebody have an explaination for the weird behaviour?

Im using that django-undeletable module in my projects for tha last 4 years 
now and the above problem never occured in a real code base - just those 
noew tests. I really like to understand that weird manager magic that faild 
to add the defined manager to the test model.

Wile debugging i saw that the objects DataManager was there, but not the 
deafult one name data.


-- 
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/2db875e6-5ea2-4ef7-876d-2e4e63db6e93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: PostrgreSQL Inside Virtualenv

2018-01-25 Thread bootcamprag
Yingi

Thanks for the info.. This is good to know...

R

Demayne

-- 
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/755d60a4-3c3a-40e1-8817-499dc06a0f72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Get request, has PK, how do I access the PK data with in the model

2018-01-25 Thread Travis Pickle
Lets say I have a model called Users.

I request(get) http://www.google.com/user/*id* 
* (pk)* 

The users has age but finds to find other users with in same range, as well 
as other items that might be different ages.
Lets say I want to find similar interest for this user in 
 http://www.google.com/profiles/32years (don't care that is is not a date, 
just want to search on it based on getting the pk id of user)
 http://www.google.com/cars/1985

Obviously both of the models would have a date field to associate with the 
users age. I am just trying to figure out how to capture the users 
age/date/whatever it may be, then setup another query set on different 
models based on users age/birthday. 

This data would be used to show relativeness to year 1985, which is not a 
fk or pk.

But we didn't know the year, until we got the get request.

-- 
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/d0be9b3c-c313-4278-84e8-f258836d8318%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: PostrgreSQL Inside Virtualenv

2018-01-25 Thread yingi keme
SQLite is fine when developing. But on production, it depends on the server you 
are going to host your site.

Some hosting service like pythonanywhere.com already provides you with 
POSTgresql. All you need to do is install the database adapter(psycopg2) in 
your virtual environment.

Yingi Kem

> On 25 Jan 2018, at 6:29 PM, bootcamprag  wrote:
> 
> Hello I am new to this group. At what point do you install PostrgreSQL? Is it 
> during the production phase?
> 
> -- 
> 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/e184c73c-e0b9-4f44-a2d3-56b160f3260d%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/E3038F70-5988-4CF6-AA97-A18C7F25F7A8%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: PostrgreSQL Inside Virtualenv

2018-01-25 Thread bootcamprag
Hello I am new to this group. At what point do you install PostrgreSQL? Is it 
during the production phase?

-- 
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/e184c73c-e0b9-4f44-a2d3-56b160f3260d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Hello

2018-01-25 Thread bootcamprag
Hello all

-- 
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/c2c5a4c7-5098-457d-836f-d8c89f3c16a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django development -

2018-01-25 Thread Matt
Hi all,

First time poster  - so hi! & hope I'm asking things here in the right way. 
I've used django, on and off, for a while for personal little projects, and 
found it fun to use.  But I'm, no pro, and its not my day job.

Now I've started a project locally, which I'd like to flesh out, make it 
more robust and then go-live with the idea as an actual website.  I've 
tried to adhere to the structure of building the site up in the correct way 
to be like an app, but again I'm no pro.

So I'd love to hear some experience of people that have moved a prototype 
through dev, into prod.

As I see it, I'd need;
1) a dev to work with me to turn the prototype (amateur code) into 
something better -> where's the best place to look for them? 
2) a platform to deploy it on (AWS, heroku, or similar) - and potentially 
someone different to do that for me - again, where's the best place to look 
for them?

So if you've got some experience in taking a django site through this, I'd 
love to hear about how you did it.

Finally - I hope I've asked the right type of question here in the group - 
I know its not the classic feature / debug question - but I didn't knwo 
where else to ask.

Thanks!
-Matt

-- 
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/7cf7cc54-9f3d-4830-82eb-45e085c4c6e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-01-25 Thread Jani Tiainen

Hi,

If you feel that Django official tutorial was too packed, Django Girls 
do have excellent tutorial that goes things in more depth: 
https://tutorial.djangogirls.org/en/



On 25.1.2018 14.51, Carl Brubaker wrote:
I did go through the tutorial. I'm reading through the the forms 
section of the documentation now. I'm more of a visual learner, so 
sometimes I have to read things 10 times til it makes sense. Thanks 
for your help!

--
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/7e582b5d-23b7-43fc-a6f0-3902c26bdf46%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
Jani Tiainen

--
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/bd9ad261-b492-b067-8fe1-a9c7d010db8e%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-01-25 Thread Carl Brubaker
I did go through the tutorial. I'm reading through the the forms section of 
the documentation now. I'm more of a visual learner, so sometimes I have to 
read things 10 times til it makes sense. Thanks for your help!

-- 
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/7e582b5d-23b7-43fc-a6f0-3902c26bdf46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: what is the use of get_queryset

2018-01-25 Thread Andréas Kühne
Hi,

There are defaults that are used for things like template_name. You should
strive to follow the templates, then you don't need to write that much code.

Check out the documentation for ListView:
https://docs.djangoproject.com/en/dev/topics/class-based-views/generic-display/#generic-views-of-objects

You can also read what the get_queryset function is for.

Regards,

Andréas

2018-01-25 12:31 GMT+01:00 Mukul Agrawal :

> I have two snap of code below.  I want to know that in the first one I
> used template_name='restaurants/restaurants_list.html' which is obvious
> if I want to use a template but in the second one I have not specified the
> template name even then it shows the correct web page.How?
>
>
>
>
> class RestaurantListView(ListView):
> template_name='restaurants/restaurants_list.html'
> def get_queryset(self):
> slug=self.kwargs.get("slug")
> if slug:
> queryset=RestaurantLocation.objects.filter(
> Q(category__iexact=slug)|
> Q(category__icontains=slug)
> )
> else:
> queryset=RestaurantLocation.objects.all()
> return queryset
>
> ##
>
> class RestaurantListView(ListView):
> def get_queryset(self):
> return RestaurantLocation.objects.all(owner=self.request.user)
>
>
>
>
> --
> 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/c29ef43a-ff1e-4008-a2c9-099bf226d5df%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/CAK4qSCff1Qm0UAmeHh17B1qK-s9sx4sTqxN1YaaBxUtDxbkdSw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django Rest Framework: Get Data from an external apis

2018-01-25 Thread Jani Tiainen

Hi,

You can't do that. Django URL configs are URLS that are routed to views 
withing Django and you can't define url that would access external sources.


To access external sources you have to do that in your endpoint API to 
call remote resource, for example by using requests library.


On 25.1.2018 5.48, tapha kebe wrote:

Hi,

i'm trying to get my data from an external api (example: 
https:api.test.com/consumers).  And i would like to know, if i have to 
build the extenal Api URL in my urls.py like this:

|
    url(r'^(?P[0-9]+)$/', views.get, name="get"),

|


 or you have any other good idea?

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/264cbb11-8f02-4730-926f-8e0ab9150fc8%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
Jani Tiainen

--
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/4a48fe6c-ec88-6353-1955-9e1e55c96605%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Django Rest Framework: Get Data from an external apis

2018-01-25 Thread tapha kebe
Hi,

i'm trying to get my data from an external api (example: 
https:api.test.com/consumers).  And i would like to know, if i have to 
build the extenal Api URL in my urls.py like this:
url(r'^(?P[0-9]+)$/', views.get, name="get"),



 or you have any other good idea?

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/264cbb11-8f02-4730-926f-8e0ab9150fc8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


what is the use of get_queryset

2018-01-25 Thread Mukul Agrawal
I have two snap of code below.  I want to know that in the first one I used 
template_name='restaurants/restaurants_list.html' which is obvious if I 
want to use a template but in the second one I have not specified the 
template name even then it shows the correct web page.How? 




class RestaurantListView(ListView):
template_name='restaurants/restaurants_list.html'
def get_queryset(self):
slug=self.kwargs.get("slug")
if slug:
queryset=RestaurantLocation.objects.filter(
Q(category__iexact=slug)|
Q(category__icontains=slug)
)
else:
queryset=RestaurantLocation.objects.all()
return queryset 

##

class RestaurantListView(ListView):
def get_queryset(self):
return RestaurantLocation.objects.all(owner=self.request.user)




-- 
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/c29ef43a-ff1e-4008-a2c9-099bf226d5df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to autoGenerate C bindings for Django 1.11 ?

2018-01-25 Thread Etienne Robillard

Is it possible to wrap Django API into public C methods in Cython?

I'm thinking I could define a few functions in my libdjango.pyx 
typically used for Django administration.


What do you think?

Etienne

Le 2018-01-24 à 06:26, Etienne Robillard a écrit :

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 suppose you could build precompiled a Django binary for 
specific architectures/compilers (like llvm) :)


Here is my results so far:

erob@marina:~/src/django-hotsauce-devel$ python
Python 2.7.13 (default, Nov 24 2017, 17:33:09)
[GCC 6.3.0 20170516] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libdjango
>>> libdjango
'/home/erob/src/django-hotsauce-devel/lib/libdjango/__init__.pyc'>

>>> dir(libdjango)
['__builtins__', '__doc__', '__file__', '__name__', '__package__', 
'__path__']

>>> libdjango.main
Traceback (most recent call last):
  File "", line 1, in 
AttributeError: 'module' object has no attribute 'main'
>>> import libdjango.main
Traceback (most recent call last):
  File "", line 1, in 
ImportError: dynamic module does not define init function (initmain)

erob@marina:~/src/django-hotsauce-devel/lib/libdjango$ cat libdjango.pxd
from django import *

erob@marina:~/src/django-hotsauce-devel/lib/libdjango$ cat libdjango.pyx
from libdjango cimport *


Any ideas why the dynamic module does not define init function?




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/9210f6ce-e01c-423f-a1a7-1eae6fe596a0%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
Etienne Robillard
tkad...@yandex.com
https://www.isotopesoftware.ca/
--
You received this message because you are subscribed to the Google 
Groups "Django hotsauce" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to django-hotsauce+unsubscr...@googlegroups.com 
.
To post to this group, send email to django-hotsa...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-hotsauce/99d0931e-2a14-c977-5519-6bcac70637c0%40yandex.com 
.

For more options, visit https://groups.google.com/d/optout.


--
Etienne Robillard
tkad...@yandex.com
https://www.isotopesoftware.ca/

--
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/5e81f5d5-d84f-30e3-1b32-32cf06fd124c%40yandex.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-01-25 Thread harsh sharma
i think you can create a form for this and integrate in your template. 
through which u can search in your database . and for more details check 
https://docs.djangoproject.com/en/2.0/topics/forms/

On Tuesday, January 23, 2018 at 5:04:48 PM UTC+5:30, 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>, , ]
>
> which is helpful, but I'm having trouble connecting to my template:
>
> 
>
> I'm not sure what to call my variable or how to integrate it into models. All 
> of the existing stuff I can find is django 1.
>
> 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/3bc83af1-23e0-4f08-900a-485f37aec8d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Contributing to Django

2018-01-25 Thread Antonis Christofides
Hello,

Yes, I believe you have it right. In the documentation there's a "How to get
involved" section that describes all the details, but they're too many to take
in, so you will need some help anyway. You will receive better help for such
questions in the django-developers list and in the django developers irc 
channel.

Regards,

Antonis

Antonis Christofides
http://djangodeployment.com


On 2018-01-25 09:35, 'Anoosha Masood Keen' via Django users wrote:
> 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 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/6e715641-d6aa-4cdd-8ba4-a2f0a4f57fc2%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/a9073653-99a2-a96c-fb49-7764993a1924%40djangodeployment.com.
For more options, visit https://groups.google.com/d/optout.


Re: PostrgreSQL Inside Virtualenv

2018-01-25 Thread Antonis Christofides
Hello,

as many people have said, you can't install PostgreSQL in a virtualenv (but you
can install the Python package for connecting to PostgreSQL (such as psycopg2)
in a virtualenv). Maybe my article virtualenv demystified
 could clear up
some confusion as to what a virtualenv is and what it does.

Regards,

Antonis

Antonis Christofides
http://djangodeployment.com


On 2018-01-24 18:56, johnf wrote:
>
> 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, 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 at 5:29 PM, 'Anoosha Masood Keen' via Django
>> users > > 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 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" 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/962726a2-e3b3-4ee1-b81b-c1227656b7da%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/CAA6wQLKYD2z4dvuxESSp67CSiDDOttMJuGxizhFHyVRhA%2BHq6w%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/CAFWa6tLjsVTidO1X4v8wB%2BBukYTjKMiif4_CLFjqsPW_3WdbDA%40mail.gmail.com
>> 
>> .
>>
>>
>> For more options, visit