Re: __init__ method called every time on same APIView object

2019-10-30 Thread Juan Pablo Romero Bernal
Hi, Show some example of code On Wed, Oct 30, 2019 at 5:08 PM Diana María Bedoya Ramírez < dbed...@ikono.com.co> wrote: > Hello, > > I have an APIView object with an __init__method. In that __init__ I have a > loop that extends a class list variable. Every time I make a POST to the > url

Re: Making a scheduling app/programm for recurring treatment

2019-10-30 Thread Nithin Bhaskar
Hey, Thanks. What would be the right time to call you? On Wed, 30 Oct 2019 at 22:36, Motaz Hejaze wrote: > I can cooperate with you .. > Talk to me on skype : m3tz-hjze > > On Wed, 30 Oct 2019, 6:43 pm Uzama Zaid Mohammed Jaward, < > uzamajaw...@gmail.com> wrote: > >> I think you don’t get any

Re: Alternatives to django ajax select

2019-10-30 Thread carlos
https://github.com/yourlabs/django-autocomplete-light On Wed, Oct 30, 2019 at 3:35 PM Luis Zárate wrote: > Hi Guys, > > Do you know any alternative to django-ajax-selects, I am using it in a > project in django 2.2 but docs says that support <=2.1 and also has some > problems with the version

Re: django-extra-views

2019-10-30 Thread Elias Coutinho
Sorted out! path('nova/', views.CreatePerson.as_view(), name='CreatePerson'), Em qua, 30 de out de 2019 às 14:27, Elias Coutinho escreveu: > Good afternoon friends! > > I need your help on this issue. > > I'm trying to use this lib: > > https://github.com/AndrewIngram/django-extra-views > >

__init__ method called every time on same APIView object

2019-10-30 Thread Diana María Bedoya Ramírez
Hello, I have an APIView object with an __init__method. In that __init__ I have a loop that extends a class list variable. Every time I make a POST to the url that calls the APIView, the items in the loop items are added to the old ones in the list, duplicating the item number every time.

Re: Fedora 30 server (Configuring Postgresql with Django)

2019-10-30 Thread hari49pf
Thank U, it is working. On Wednesday, October 30, 2019 at 11:02:22 PM UTC+5:30, sacrac wrote: > > man you just have the user variable in the configuration of the bd > misspelled, change USERS for USER > > On Wed, Oct 30, 2019 at 11:16 AM hari49pf > > wrote: > >> yes harish.b is OS user, db

Alternatives to django ajax select

2019-10-30 Thread Luis Zárate
Hi Guys, Do you know any alternative to django-ajax-selects, I am using it in a project in django 2.2 but docs says that support <=2.1 and also has some problems with the version on jquery used, so I am looking something that help to remplace this lib.

data is not saved in admin

2019-10-30 Thread Bishal adhikari
def pure(request): form_dj = new() if request.method=="POST": form_dj=new(request.POST) context={ "form":form_dj } return render(request,"new/new1.html",context) everything is good but when i opened the admin the data is not saved there help me -- You received this

Django admin

2019-10-30 Thread Oyekanmi Akande
I am currently building an application that require a module for registration and sign in as a different user on the platform. The user can also sign in as an admin. Do I need to override the existing django admin or wat. Thanks as you contribute -- You received this message because you are

Re: Django leaflet

2019-10-30 Thread Jani Tiainen
Also I did workshop on last DjangoCon EU where I used leaflet without additional magic. You can find short docs and code at http://dceu2019.tiainen.cc su 27. lokak. 2019 klo 2.42 Perceval Maturure kirjoitti: > > Hi all > How do u wire your template and view to display maps in Django leaflet >

Re: django.contrib.gis for Windows 10

2019-10-30 Thread Jani Tiainen
Hi. First postgis should bring all necessary libs since it uses very same geospatial libs as osgeo. Very important thing is to make sure that if you have 32bit libs you use 32bit python and same with 64bits. You just can't mix libs with different bit sizes. In linux this is much easier since it

Re: Fedora 30 server (Configuring Postgresql with Django)

2019-10-30 Thread carlos
man you just have the user variable in the configuration of the bd misspelled, change USERS for USER On Wed, Oct 30, 2019 at 11:16 AM hari49pf wrote: > yes harish.b is OS user, db user is harishb. > DB: ourscomputerlearning > > > On Wednesday, October 30, 2019 at 10:10:42 AM UTC+5:30, Kevin Jay

UNIQUE constraint failed on adding a new model field

2019-10-30 Thread Vahid Asadi
HI . when i want to add a new field called "slug" to my "Post" model, the migrate command will raise UNIQUE constraint failed: new__chat_post.slug after that i remove that field from my model but the problem still exists. why?? and how to resolve this problem without deleting my whole table

django-extra-views

2019-10-30 Thread Elias Coutinho
Good afternoon friends! I need your help on this issue. I'm trying to use this lib: https://github.com/AndrewIngram/django-extra-views Specifically CreateWithInlinesView or UpdateWithInlinesView Then I created the view like this: from extra_views import CreateWithInlinesView,

Re: Fedora 30 server (Configuring Postgresql with Django)

2019-10-30 Thread hari49pf
yes harish.b is OS user, db user is harishb. DB: ourscomputerlearning On Wednesday, October 30, 2019 at 10:10:42 AM UTC+5:30, Kevin Jay wrote: > > I meant to type ‘harish.b’ > > On Tue, Oct 29, 2019 at 11:37 PM Kevin Jay > > wrote: > >> Does the user ‘garish.b’ have a system password? >> >> On

Re: Making a scheduling app/programm for recurring treatment

2019-10-30 Thread Motaz Hejaze
I can cooperate with you .. Talk to me on skype : m3tz-hjze On Wed, 30 Oct 2019, 6:43 pm Uzama Zaid Mohammed Jaward, < uzamajaw...@gmail.com> wrote: > I think you don’t get any answer for these like questions in here. This is > a forum to discuss about Django and Support. First you have to

Re: OSError: [WinError 126] The specified module could not be found

2019-10-30 Thread Adam Starrh
I just solved this for myself by switching to 32-bit versions of Python and OSGeo4Win On Thursday, April 11, 2019 at 8:31:47 AM UTC-7, Dieu Donne Megnassan wrote: > > I need help to figure this out. I'm a GeoDjango newbie and I've been > trying to setup the geograpic libraries to no avail.I am

Re: django.contrib.gis for Windows 10

2019-10-30 Thread Adam Starrh
For future reference, make sure you are using 32-bit versions of Python and OSGeo4Win. GDAL doesn't seem to work otherwise. On Thursday, June 13, 2019 at 12:45:32 PM UTC-7, RyuCoder wrote: > > Hey, > > I had a similar issue with one of the projects I was working on. > > GDAL was not working

Re: How to migrate and copy Data from sqlite to Postgresql

2019-10-30 Thread Uzama Zaid Mohammed Jaward
This link was found in a previous email https://justinmi.me/blog/2017/04/28/migrating-sql-databases On Wed, Oct 30, 2019 at 19:44, Balaji Shetty wrote: > Hi > > Can anyone please provide me help or any website providing help of DB > Migration. > > Already I have deployed Application on

Re: Making a scheduling app/programm for recurring treatment

2019-10-30 Thread Uzama Zaid Mohammed Jaward
I think you don’t get any answer for these like questions in here. This is a forum to discuss about Django and Support. First you have to design the system. Then onwards you can use Django. You might get answer for this if you will post this in stack overflow On Wed, Oct 30, 2019 at 19:34, Nithin

Re: Django Channels persistent DB connection

2019-10-30 Thread BR
I should add: My interest would be to have a DB connection that lasts the lifetime of the parent consumer. Does it already do this, and am I imagining things? On Wednesday, October 30, 2019 at 12:17:54 PM UTC-4, BR wrote: > > I moved from a local sqlite3 DB file to a shared remote (local LAN)

Django Channels persistent DB connection

2019-10-30 Thread BR
I moved from a local sqlite3 DB file to a shared remote (local LAN) MariaDB server and noticed a bit of a slow down. On top of the DB now being remote, I'm also using SSL to encrypt the DB information. Based on the description of *database_sync_to_async* it sounds like the connection is

How to migrate and copy Data from sqlite to Postgresql

2019-10-30 Thread Balaji Shetty
Hi Can anyone please provide me help or any website providing help of DB Migration. Already I have deployed Application on pythonanywhere . There are 250 records already created and relational database with 5 models present in Application. Default DB is Sqlite and I have to switch to

Re: Making a scheduling app/programm for recurring treatment

2019-10-30 Thread Nithin Bhaskar
Well to be frank, I am stuck right at the beginning itself. I am working in a public sector with limiter resources and a huge patient load and almost no funding. I was thinking of making patient scheduling a bit manageable and easy in my hospital. I have not yet figured out how to go about with

Re: Multiple Database Setup

2019-10-30 Thread DANIEL URBANO DE LA RUA
https://docs.djangoproject.com/en/2.2/topics/db/multi-db/ On Wed, 30 Oct 2019, 14:39 Rajat Chopra, wrote: > I wish to create a project with 2 apps. Each app will have its own > database - one for payments and another for statements. > > I have created a set of models within the models.py for

Multiple Database Setup

2019-10-30 Thread Rajat Chopra
I wish to create a project with 2 apps. Each app will have its own database - one for payments and another for statements. I have created a set of models within the models.py for the payments app and another set of models inside within the models.py for the statements app. When I run the

Re: Making a scheduling app/programm for recurring treatment

2019-10-30 Thread Kasper Laudrup
Hi Nithin, On 30/10/2019 08.19, Nithin Bhaskar wrote: I am completely new to django and python and don't have a background in programming I have taught myself a bit of python and django and use PyCharm Kindly help me out What exactly do you need help with? What have you done so far?

Re: ayudaaa

2019-10-30 Thread Kasper Laudrup
Hi Priscila, On 30/10/2019 06.14, Priscila Moreno wrote: Good evening, I would like you to help me in django how to change colors in the admin It's described in the official documentation here: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-admin-templates Kind

Re: Fedora 30 server (Configuring Postgresql with Django)

2019-10-30 Thread hari49pf
i am using *postgresql*, not *oracle*. please help me out On Wednesday, October 30, 2019 at 4:39:18 PM UTC+5:30, Siratim Mustaquim wrote: > > Can You please check your DB configuration @hari49pf. As @carlos mentioned > there might be an error there. > > [image: database.png] > > > > > On

ayudaaa

2019-10-30 Thread Priscila Moreno
Good evening, I would like you to help me in django how to change colors in the admin -- 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

Re: Serving non-referenced static files

2019-10-30 Thread ahanor nosa
Create a folder call static in your project directory and paste your JS files there. On Tuesday, October 29, 2019, Jack Sundberg wrote: > Hello again, > > I could use some help on loading static files in development mode. > Specifically, I'd like to tell Django to serve additional files that

Making a scheduling app/programm for recurring treatment

2019-10-30 Thread Nithin Bhaskar
I am trying to make a scheduling app/program for recurring treatments..ie.. for patients requiring treatments daily (5 days a week) for about 6-7 weeks. Scheduling has to happen for 6-7 rooms with each room accommodating 50 patients each per day, and each treatment slot extending anywhere

Creating Shopify webhook using pipeline

2019-10-30 Thread Saswat Ray
Hi Guys, I need to create one webhook in shopify(order/product) but using *pipeline function*.I did the app authentication and got the access taken. In settings.py i added this SOCIAL_AUTH_SHOPIFY_WEBHOOK_PIPELINE = ( 'social_core.pipeline.social_auth.social_uid',

Re: Fedora 30 server (Configuring Postgresql with Django)

2019-10-30 Thread Siratim Mustaquim
Can You please check your DB configuration @hari49pf. As @carlos mentioned there might be an error there. [image: database.png] On Wed, Oct 30, 2019 at 10:40 AM Kevin Jay wrote: > I meant to type ‘harish.b’ > > On Tue, Oct 29, 2019 at 11:37 PM Kevin Jay wrote: > >> Does the user ‘garish.b’

Re: Query regarding Jija templates with django project

2019-10-30 Thread 'Amitesh Sahay' via Django users
Hey Red, Thank you for your reply. Your suggestion did the trick. Now I am facing issues with static files, especially for CSS files. There were issues for images files, but I got that rectified. I know that the location that I have mentioned in the HTML pages has the CSS files. Still  I am

Re: Django leaflet

2019-10-30 Thread Derek
Have a look at https://django-leaflet.readthedocs.io/en/latest/ On Sunday, 27 October 2019 01:42:24 UTC+2, Perceval Maturure wrote: > > > Hi all > How do u wire your template and view to display maps in Django leaflet > > Sent from my iPhone > -- You received this message because you are

Re: Add filter to admin add page?

2019-10-30 Thread Derek
It is not clear if those fields can be used in the admin list interface drop-down filters - is there a link to documentation for that? On Wednesday, 23 October 2019 16:13:13 UTC+2, Nelson Varela wrote: > > Or even better... whu not use django's own auto complete feature in the > admin: >