Re: Simple django api

2018-06-05 Thread Django Girls Bauchi
JWT, auto generated user Id(alphanumeric), email, and full name Thanks On Wed, Jun 6, 2018, 3:30 AM Satyam Soni wrote: > Its simple. Postman is simply a tool. All you need to create an api. What > kind of data you wanna post as response from api ? > > Sent from my iPhone > > On 06-Jun-2018, at 7

Re: Simple django api

2018-06-05 Thread Satyam Soni
Its simple. Postman is simply a tool. All you need to create an api. What kind of data you wanna post as response from api ? Sent from my iPhone > On 06-Jun-2018, at 7:55 AM, Dylan Reinhold wrote: > > What is your specific question. > >> On Tue, Jun 5, 2018 at 6:35 PM, Django Girls Bauchi

Re: Simple django api

2018-06-05 Thread Django Girls Bauchi
Wants to create a simple django api, that accept specific data(using postman) and send response. Yeah its simple, but simple tend hard on me this days, anyone to help out, urgently. On Wed, Jun 6, 2018, 3:26 AM Dylan Reinhold wrote: > What is your specific question. > > On Tue, Jun 5, 2018 at 6

Re: Simple django api

2018-06-05 Thread Mike Dewhirst
Take a look at Django REST Framework http://www.django-rest-framework.org/ Haven't used it myself but I'm planning to one of these days. Cheers M On 6/06/2018 11:35 AM, Django Girls Bauchi wrote: Hello Response pls On Tue, Jun 5, 2018, 10:46 PM Django Girls Bauchi mailto:bau...@djangogirls

Re: App not Defined - Getting Started

2018-06-05 Thread Satyam Soni
Did u registered you app in settings.py file ? This happens when you forget to put name of your app in installed apps in settings.py file. Sent from my iPhone > On 05-Jun-2018, at 2:36 AM, Jaime Escobar wrote: > > Hi, > I am a completely beginner in django and also python programming. I am t

Re: Simple django api

2018-06-05 Thread Dylan Reinhold
What is your specific question. On Tue, Jun 5, 2018 at 6:35 PM, Django Girls Bauchi wrote: > Hello > Response pls > > On Tue, Jun 5, 2018, 10:46 PM Django Girls Bauchi > wrote: > >> Holla >> Wants to create a simple django api, that send specific data(using >> postman) and receive response. Yea

Re: Django and aws elastic beanstalk

2018-06-05 Thread Yik San Chan
For requirements.txt, you have to run > pip freeze > requirements.txt For the second error, you have to run > eb config Then change WSGIPath to point to your wsgi.py file. On Thursday, July 14, 2016 at 4:32:47 AM UTC-7, mat...@vogcalgaryappdeveloper.com wrote: > > Hi, I’ve been directed to y

Re: Simple django api

2018-06-05 Thread Django Girls Bauchi
Hello Response pls On Tue, Jun 5, 2018, 10:46 PM Django Girls Bauchi wrote: > Holla > Wants to create a simple django api, that send specific data(using > postman) and receive response. Yeah its simple, but simple tend hard on me > this days, anyone to help out, urgently. > > Thanks > -- You r

Re: This site can’t be reached 127.0.0.1 refused to connect.

2018-06-05 Thread James Farris
What’s the actual error? Did you mean ALLOWED_HOSTS? If so you can just add: ALLOWED_HOSTS=[‘*’] On Tue, Jun 5, 2018 at 12:55 PM Jamie Roberts wrote: > Hi, > > This is from memory and may not be your problem but ... I had to add > 127.0.0.1 to ALLOWED_USERS in settings.py > > Sent from my iPhon

Simple django api

2018-06-05 Thread Django Girls Bauchi
Holla Wants to create a simple django api, that send specific data(using postman) and receive response. Yeah its simple, but simple tend hard on me this days, anyone to help out, urgently. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group.

How to work with established postgresql database with multiple schemas in Django?

2018-06-05 Thread G.R. Nobles
I'm trying to develop a django interface for an existing postgresql db, the db makes use of various schemas, looking at the literature the following example should work, but it only returns the schema defined in the default database when I run python manage.py inspectdb. Also when this works,

Re: Inlineformset without foreign key possible?

2018-06-05 Thread HashRocketSyntax
Thank you for pointing me in the right direction =) looks like that class is more generic. On Tuesday, June 5, 2018 at 9:08:35 PM UTC, Matthew Pava wrote: > > I’m not able to wrap my head around your specific application, but if you > don’t want to use a ForeignKey on a formset, don’t use an

RE: Inlineformset without foreign key possible?

2018-06-05 Thread Matthew Pava
I’m not able to wrap my head around your specific application, but if you don’t want to use a ForeignKey on a formset, don’t use an InlineFormset. Just use a regular BaseFormset. https://docs.djangoproject.com/en/2.0/topics/forms/formsets/ From: django-users@googlegroups.com [mailto:django-users

Inlineformset without foreign key possible?

2018-06-05 Thread Layne Sadler
I'm trying to implement an *inline formset for two models in a graph database*. The problem that I'm running into is that formsets are designed with *foreign keys* in mind. I'm relating a model to itself through another model. For simplicity sake, let's call them a Person model and a FriendR

Re: Accessing the model attribute of UpdateView & friends

2018-06-05 Thread Andréas Kühne
Hi, Have you tried self.model? It should be present in all methods in the class? Regards, Andréas 2018-06-05 21:56 GMT+02:00 Mikkel Kromann : > Dear Django-users. > > I'm slowly working towards a Django "data-warehouse" framework, where I > can easily add a lot of models (each containing a tab

Accessing the model attribute of UpdateView & friends

2018-06-05 Thread Mikkel Kromann
Dear Django-users. I'm slowly working towards a Django "data-warehouse" framework, where I can easily add a lot of models (each containing a table with data), while sticking to only few reusable views. I've realised that in urls.py, it is possible to specify the model on which the UpdateView i

Re: This site can’t be reached 127.0.0.1 refused to connect.

2018-06-05 Thread Jamie Roberts
Hi, This is from memory and may not be your problem but ... I had to add 127.0.0.1 to ALLOWED_USERS in settings.py Sent from my iPhone > On 5 Jun 2018, at 16:38, Avitab Ayan Sarmah wrote: > > While going through the turolal 7 of the django project, couldn't connect to > the url.Please commen

Re: A calendar booking app

2018-06-05 Thread Kasper Laudrup
Hi Carlos, On 2018-06-05 18:59, carlos wrote: Hi, maybe try use https://github.com/llazzaro/django-scheduler https://github.com/bitlabstudio/django-booking or find here https://djangopackages.org/ I have looked at both these apps and the djangopackages website, but admittedly, I haven't a

Re: A calendar booking app

2018-06-05 Thread Spence Patrick
I use Google calendar for a booking app that changes events in a public calendar for everyone to see On Tue, Jun 5, 2018, 06:33 Kasper Laudrup wrote: > Hi fellow Django users, > > I'm planning to start up a homepage for my familys summer house. > > There are a few ideas of what should be there,

Re: A calendar booking app

2018-06-05 Thread carlos
Hi, maybe try use https://github.com/llazzaro/django-scheduler https://github.com/bitlabstudio/django-booking or find here https://djangopackages.org/ On Tue, Jun 5, 2018 at 9:34 AM, Dan Tagg wrote: > I'm looking for the same thing Kasper -- Django based not PHP. > > Dan > > On 5 June 2018 at

This site can’t be reached 127.0.0.1 refused to connect.

2018-06-05 Thread Avitab Ayan Sarmah
While going through the turolal 7 of the django project, couldn't connect to the url.Please comment why my local host refused to connect -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fr

Re: A calendar booking app

2018-06-05 Thread Dan Tagg
I'm looking for the same thing Kasper -- Django based not PHP. Dan On 5 June 2018 at 13:32, Kasper Laudrup wrote: > Hi fellow Django users, > > I'm planning to start up a homepage for my familys summer house. > > There are a few ideas of what should be there, user management, possibly > "blog l

Re: A calendar booking app

2018-06-05 Thread Kasper Laudrup
On 2018-06-05 14:38, HaatBhaar Developer wrote: I have an webapp for that. Where you can achieve your requirement, but that is in the PHP code. If this is acceptable for you, then we can do further communication accordingly. Hi there, Thanks for the input, but I really don't want to use PHP f

Re: A calendar booking app

2018-06-05 Thread HaatBhaar Developer
Dude, I have an webapp for that. Where you can achieve your requirement, but that is in the PHP code. If this is acceptable for you, then we can do further communication accordingly. Hope we will be in the same track. On 5 June 2018 at 18:02, Kasper Laudrup wrote: > Hi fellow Django users, > > I

Re: Upload video with automatically created thumbnail in Django 2

2018-06-05 Thread HaatBhaar Developer
Hello dude, I wish I could solved your problem. But right now I don't have that idea. Hope fully I will find that for you and will give the solution. May your next problem I can solve. On 5 June 2018 at 17:40, Pravin Yadav wrote: > I want to upload .mp4 and .mov videos in my django website with

Re: App not Defined - Getting Started

2018-06-05 Thread Sadialiou Diallo
you must replace the > path('polls/',include(polls. > urls)), > by path('polls/',include("polls. urls")), because the polls is not a variable,it is a name of application -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from thi

A calendar booking app

2018-06-05 Thread Kasper Laudrup
Hi fellow Django users, I'm planning to start up a homepage for my familys summer house. There are a few ideas of what should be there, user management, possibly "blog like" entries, a photo gallery etc. I think I've found some pretty good existing Django apps for that, so that shouldn't be a

Re: Sponsor subdomain pointing to part of our Django site?

2018-06-05 Thread Richard Brockie
Hi James, On Tue, Jun 5, 2018 at 2:19 PM James Schneider wrote: > On Mon, Jun 4, 2018, 12:37 PM Melvyn Sopacua > wrote: > >> Aha! Now I get it! This should be solveable at the WSGI layer: >> >> >> >> PATH_INFO >> >> The remainder of the request URL's "path", designating the virtual >> "location

Re: calculate the followers difference/grow by day

2018-06-05 Thread James Farris
I think you can do something like this stats = Statistics.objects.all().order_by('-last_update') latest_stat = 0 for stat in stats: print(abs(latest_stat - stat.followers)) latest_stat = stat.followers On Mon, Jun 4, 2018 at 11:24 AM, Daniel Germano Travieso < danielgtravi...@gmail.com> wrote: >