Re: Fetching API data in json format and inserting it into the django local database.

2017-06-05 Thread MOEGAMMAT FAIEEZ WHITE
I want to get the values and store it. im creating a visualization web application for a data collection application which stores the data directly to the database. i am doing the application as a honours project, the data collection application is mostly used in under-served communities, and

Re: Installing Django

2017-06-05 Thread Daniel Roseman
On Monday, 5 June 2017 12:33:28 UTC+1, Richard Mungai wrote: > > Hi.. > I'm trying to install django using the pip command i.e (pip install > django) but i keep getting the same error message i.e "Requirement already > satisfied: django in c:\program files\python >

Re: Fetching API data in json format and inserting it into the django local database.

2017-06-05 Thread MOEGAMMAT FAIEEZ WHITE
Hi Jani, i have direct access to the database where the form is stored. I GET the data using the imported requests e,g [r = requests.get(url, auth=HTTPBasicAuth('username', 'password'))] so the user would have to input his/her user name and password , and the project name for which they want

Re: Fetching API data in json format and inserting it into the django local database.

2017-06-05 Thread MOEGAMMAT FAIEEZ WHITE
Hi Jani, i have direct access to the database where the form is stored. I GET the data using the imported requests e,g [r = requests.get(url, auth=HTTPBasicAuth('username', 'password'))] so the user would have to input his/her user name and password , and the project name for which they want

Re: Fetching API data in json format and inserting it into the django local database.

2017-06-05 Thread Jani Tiainen
On 05.06.2017 15:23, MOEGAMMAT FAIEEZ WHITE wrote: Hi Jani, i have direct access to the database where the form is stored. I GET the data using the imported requests e,g [r = requests.get(url, auth=HTTPBasicAuth('username', 'password'))] So your remote database contains some kind of a

Re: Installing Django

2017-06-05 Thread Oladipupo Elegbede
For the Python prompt from CMD and do the following >>>import Django >>>Django.VERSION This should tell you what version of Django you have. On Jun 5, 2017 7:21 AM, "Daniel Roseman" wrote: > On Monday, 5 June 2017 12:33:28 UTC+1, Richard Mungai wrote: >> >> Hi.. >>

Re: Fetching API data in json format and inserting it into the django local database.

2017-06-05 Thread Jani Tiainen
Hi, First you need to decide how you are going to activate fetch data from remote company database. Is it a button in user interface, django management commant or maybe timed task? Secondly you need to decide how to actually fetch that data from remote company database Through RESTful

TWITTER

2017-06-05 Thread Daniel
FOLLOW https://twitter.com/VMozghovyi -- 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

Installing Django

2017-06-05 Thread Richard Mungai
Hi.. I'm trying to install django using the pip command i.e (pip install django) but i keep getting the same error message i.e "Requirement already satisfied: django in c:\program files\python 35-32\lib\site-packages\django-1.10.6-py3.5.egg" How can I solve this?? -- You received this message

django-channels with django-tenant-schemas

2017-06-05 Thread Suc
Does django-tenant-schemas affect django-channels message.reply? Im using ngrok in host header spoofing for multitenancy but im having problem on sending message on web socket

Authentication backend - serialization

2017-06-05 Thread Alison P
Hi everyone, I have written a custom authentication backend, the code is below. It allows a user to click "email me a one-time password" on the home page, which is saved on the "Person" model (which extends User through a foreign key) and then log in with that password. This backend verifies

Fetching API data in json format and inserting it into the django local database.

2017-06-05 Thread MOEGAMMAT FAIEEZ WHITE
Hi i am new to Django, can you please guide me as to how i can fetch data from a companies database and insert it into my database. I have been reading about models.py and serializers.py and all tutorials and readings i came accross has online shown be how to display the database data onto the

Re: Fetching API data in json format and inserting it into the django local database.

2017-06-05 Thread MOEGAMMAT FAIEEZ WHITE
On Monday, June 5, 2017 at 2:56:54 PM UTC+2, MOEGAMMAT FAIEEZ WHITE wrote: > > I want to get the values and store it. im creating a visualization web > application for a data collection application which stores the data > directly to the database. > > i am doing the application as a honours

Re: Installing Django

2017-06-05 Thread Melvyn Sopacua
On Monday 05 June 2017 06:44:13 Oladipupo Elegbede wrote: > For the Python prompt from CMD and do the following > > >>>import Django > >>>Django.VERSION 1) it's django not Django > This should tell you what version of Django you have. > > On Jun 5, 2017 7:21 AM, "Daniel Roseman"

Re: django-channels with django-tenant-schemas

2017-06-05 Thread Andrew Godwin
Does the WebSocket handshake finish? The developer console in a browser should tell you if it actually opens up or not. Normal Django middleware shouldn't affect WebSockets as it's a different networking style, but it's very easy to get WebSockets set up wrong for a variety of other reasons.

Re: Installing Django

2017-06-05 Thread Carlos Andre
pip install django==1.10 2017-06-05 13:59 GMT-03:00 Melvyn Sopacua : > On Monday 05 June 2017 06:44:13 Oladipupo Elegbede wrote: > > > For the Python prompt from CMD and do the following > > > > > > >>>import Django > > > >>>Django.VERSION > > > > 1) it's django not

Re: Installing Django in Window 10

2017-06-05 Thread Nandan Priyadarshi
Hi .. Django is Installed. I want to create API with Django with Cassandra DB.. I just want respected steps. Thanks. On Tuesday, 6 June 2017 11:37:24 UTC+8, Hemhem wrote: > > Are you sure you don't already have Django installed? > > Try to import Django from your Python prompt and see what

template drop down menu

2017-06-05 Thread sum abiut
Hi, need some directions, i need to query the my database and display the result of the query in the table. to do that i want to use a drop down menu and get the users to select options from the drop menu on the template. for example if a user select a word from the drop down menu i want to

Re: Authentication backend - serialization

2017-06-05 Thread ludovic coues
I don't see where in your code the error happen. With standard python, you can't add a method on your class to make is JSON serializable. At least to my knowledge. You have to write your own serializer and instruct the code turning your object into JSON to use it. But there are a few easier

julian date to normal date conversion

2017-06-05 Thread sum abiut
i am using python,and django as my web framework. I use sqlalchemy to connect to MSSQL data that is running Epicor database. Epicor is using julian * date. How to you convert julian date to normal date* *cheers,* -- You received this message because you are subscribed to the Google Groups

Re: julian date to normal date conversion

2017-06-05 Thread Larry Martell
On Mon, Jun 5, 2017 at 6:10 PM, sum abiut wrote: > i am using python,and django as my web framework. I use sqlalchemy to > connect to MSSQL data that is running Epicor database. Epicor is using > julian date. How to you convert julian date to normal date It's called

CENSORSHIP

2017-06-05 Thread Daniel
GO RETWEET https://twitter.com/VMozghovyi/status/823610114565427201 -- 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.

Re: Authentication backend - serialization

2017-06-05 Thread Melvyn Sopacua
On Monday 05 June 2017 04:14:01 Alison P wrote: > If I use the default session serializer, I get the following error: > TypeError at /login/ > > is not JSON serializable I'm using this is a general solution. Feel free to strike what you don't need. The basics is that a JSONEncoder knows

Re: Installing Django in Window 10

2017-06-05 Thread Oladipupo Elegbede
Are you sure you don't already have Django installed? Try to import Django from your Python prompt and see what happens. If it doesn't throw any error, you have it. If it does, you can do pip install Django That should install it. On Jun 5, 2017 9:11 PM, "Nandan Priyadarshi"

Installing Django in Window 10

2017-06-05 Thread Nandan Priyadarshi
Hi , I am using* Windows 10, 64-bit system. Using Anaconda for Python with 3.6 version. * C:\Users\nandan>python > Python 3.6.0 |Anaconda 4.3.0 (64-bit)| (default, Dec 23 2016, 11:57:41) > [MSC v.1900 64 bit (AMD64)] on win32 > Type "help", "copyright", "credits" or "license" for more

Re: Same tutorial different day

2017-06-05 Thread James Schneider
On Jun 5, 2017 6:50 PM, wrote: I was attempting the tutorial titled "Writing your first Django app". The tutorial appears to be very simple, but it does not seem to work. I have frustrated myself by attempting to do it from scratch after failing last week. If I could get

Same tutorial different day

2017-06-05 Thread kitico
I was attempting the tutorial titled "Writing your first Django app". The tutorial appears to be very simple, but it does not seem to work. I have frustrated myself by attempting to do it from scratch after failing last week. If I could get this app to work I could fix the tutorial for you.

Re: Same tutorial different day

2017-06-05 Thread Lachlan Musicman
I think your mysite/urls.py needs an import polls -- "Mission Statement: To provide hope and inspiration for collective action, to build collective power, to achieve collective transformation, rooted in grief and rage but pointed towards vision and dreams." - Patrisse Cullors, *Black

Re: Same tutorial different day

2017-06-05 Thread James Schneider
On Jun 5, 2017 7:27 PM, "Lachlan Musicman" wrote: I think your mysite/urls.py needs an import polls Ah, yes. This is the other common issue with the tutorial. Many of the code blocks omit the necessary import statements to keep the examples easier to read. The expectation