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

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

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,

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)

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 .

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 >

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

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

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

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

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

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

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 >

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

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

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

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

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

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

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 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

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

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

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:

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

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

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

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

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

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

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