Missing staticfiles manifest entry on heroku app, runs fine locally

2020-06-25 Thread James
Hi everyone, I'm getting server error 500 when I deploy my app to heroku. The logs show an issue with staticfiles, even though I'm serving static and media from an S3 bucket: ValueError: Missing staticfiles manifest entry for 'images/favicon.ico' What's odd is that run I run locally, even

Re: Django queryset filtering

2020-06-25 Thread Oleg Kishenkov
Hello, use a filtering chain, a refined queryset is itself a queryset so you can filter it further. Also, Django has extensive lookup support in its filtering methods. Let's assume LicenseIssue is related to Business as many to one (it is probably the case): class Business(models.Model): name

Re: Symmetrical, Self-referencing ManyToManyField with Through Table

2020-06-25 Thread Jim Shepherd
Nice solution. Thanks! On Thursday, June 25, 2020 at 5:49:23 PM UTC-4, Dan Madere wrote: > > I don't know of a way to configure the admin do that, but one solution > would be to use signals to notice when one-way records are created, then > automatically create the record for reverse

Re: Symmetrical, Self-referencing ManyToManyField with Through Table

2020-06-25 Thread Dan Madere
I don't know of a way to configure the admin do that, but one solution would be to use signals to notice when one-way records are created, then automatically create the record for reverse relationship. We need to notice when records are deleted as well. This approach would allow showing one

Re: Is there a package that enables one Django project to authenticate via a second Django project?

2020-06-25 Thread Dave R
Is REMOTE_USER a technology that's still used? Aside from the one page of documentation, I don't see a lot of other references to it on Stack Overflow, etc. In my implementation, the client authenticates to the server, pulls the latest-and-greatest user data, then saves it on the client

Starving queue with django-celery and rabbitmq

2020-06-25 Thread Rogerio Carrasqueira
Hello guys! I think it’s kind of off-topic, because it’s basically I think more from RabbitMQ than from Django itself, but I believe someone has already may have gone through with a similar situation. I have a Django application that runs with celery 3.1 and rabbitmq 3.8.2, It uses rabbitmq to

Re: Is there a package that enables one Django project to authenticate via a second Django project?

2020-06-25 Thread Andréas Kühne
First of all - why separate the django apps into various projects? That seems a bit strange because you are depending on one user account and one database? There isn't really any benefit of doing it like that - why not use a single django project? But on the other hand - if you want to continue

Re: Project Collaboration Team

2020-06-25 Thread Chuck
interested On Thursday, June 25, 2020, 11:43:02 AM PDT, Hamza Mirchi wrote: interested On Tuesday, June 23, 2020 at 8:20:37 AM UTC-4, Ali Murtuza wrote: I am intrested  On Tue, 23 Jun 2020 at 9:14 AM, Shubhanshu Arya wrote: Hello Everyone, I want to make a team in which we will

Is there a package that enables one Django project to authenticate via a second Django project?

2020-06-25 Thread Dave R
I keep running into this problem and started working on a custom solution... but before I spend hours on this, I want to confirm that such a package/solution doesn't already exist. I was working on a large project last year that involved a single set of users and many small applications. I

Re: How Can i integerate 2checkout with django / python3

2020-06-25 Thread Ogunsanya Opeyemi
You can do that by creating your view, url path and templates. On Thursday, June 25, 2020, Hamza Mirchi wrote: > How Can i integerate 2checkout with django / python3 > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from

Re: Project Collaboration Team

2020-06-25 Thread Hamza Mirchi
interested On Tuesday, June 23, 2020 at 8:20:37 AM UTC-4, Ali Murtuza wrote: > > I am intrested > > On Tue, 23 Jun 2020 at 9:14 AM, Shubhanshu Arya > wrote: > >> Hello Everyone, >> I want to make a team in which we will make some very good level projects >> together. These projects will be

How Can i integerate 2checkout with django / python3

2020-06-25 Thread Hamza Mirchi
How Can i integerate 2checkout with django / python3 -- 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 view this

Re: Symmetrical, Self-referencing ManyToManyField with Through Table

2020-06-25 Thread Jim Shepherd
After reviewing the tests, I think I now understand what is going on. Basically, for symmetric ManyToManyField, Django creates entries for both directions automatically if the correct interface is used. From the test models: class PersonSelfRefM2M(models.Model): name =

Re: Symmetrical, Self-referencing ManyToManyField with Through Table

2020-06-25 Thread Jim Shepherd
On Thursday, June 25, 2020 at 10:26:25 AM UTC-4, Dan Madere wrote: > > I tried out the example code, and can replicate this. What's interesting > is that if I try removing the ContactConnection model, and the "through" > attribute, this allows Django to create the intermediate table on its own,

Re: Looking for experience dgango developers to work on a Project

2020-06-25 Thread Ernest Thuku
Hello, I am interested in the position of a Django Developer. I have been working with django thus have an experience. I would like to hear more about the project. Thank you, Ernest Thuku On Thu, Jun 25, 2020 at 5:55 PM BENDEV wrote: > Details of the project: > > The team of 7 developers will

Performing raw sql queries in database

2020-06-25 Thread tejas joshi
Hi, I want to return the first occurrence of repetitive fields in my model. I have a title field in my model as follows : models.py class Post(models.Model): title = models.CharField(max_length=20) There will be multiple 'Post' with the same title. I want to exectute the following query on the

Looking for experience dgango developers to work on a Project

2020-06-25 Thread BENDEV
Details of the project: The team of 7 developers will be building a cloud based documents management system. Duration of this work is 3 months. Interested and need more details about this project DM me Directly. (Solomontar2@gmail) Thanks -- You received this message because you are

Re: Symmetrical, Self-referencing ManyToManyField with Through Table

2020-06-25 Thread Dan Madere
I tried out the example code, and can replicate this. What's interesting is that if I try removing the ContactConnection model, and the "through" attribute, this allows Django to create the intermediate table on its own, and then your get_connections() method works as expected! It seems like

Re: Getting exception while importing data though Django Admin

2020-06-25 Thread Derek
This seems to be an error raised by a third-party library; you'd probably get a quicker / better response by contacting their devs. On Thursday, 25 June 2020 00:25:18 UTC+2, Sasi Tiru wrote: > > Exception: > > \lib\site-packages\import_export\resources.py", line 581, in import_data > raise

Re: Symmetrical, Self-referencing ManyToManyField with Through Table

2020-06-25 Thread Jim Shepherd
Mike, Thanks for your suggestions. Just a stab in the dark - have you tried giving from_contact a > related_name? > Yes, I have tried a few different combinations of providing a single related_name and various naming conventions when providing related_name on both ForeignKey fields without

Re: Reverse for 'process_data' not found. 'process_data' is not a valid view function or pattern name.

2020-06-25 Thread Ogunsanya Opeyemi
Look at your index path it is not written very well in the name you wrote name=') without closing the apstorphe ' and request a url purely in your template href like this href="process_data/{{ver}}". And let me know wether it worked or not. On Thursday, June 25, 2020, ratnadeep ray wrote: > Hi

Re: Project Collaboration Team

2020-06-25 Thread Lokesh Kumar
I'm interested. Regards, Lokesh Kumar https://www.facebook.com/Lokeshk431 https://twitter.com/LokeshK431 https://www.instagram.com/lokeshk431/ https://github.com/LokeshK431 On Tue, Jun 23, 2020 at 9:44 AM Shubhanshu Arya wrote: > Hello Everyone, > I want to make a team in which we will make

Re: Manage.py not working

2020-06-25 Thread Sainikhil Avula
Hey Tanisha try this command (django-admin startapp appName) On Saturday, 20 June 2020 21:12:02 UTC+5:30, Tanisha Jain wrote: > > Hi everyone, > I am new to Django platform. Whenever I am trying to create a new app > using ( python manage.py startapp app1) then I am not able to create app. >

Re: Reverse for 'process_data' not found. 'process_data' is not a valid view function or pattern name.

2020-06-25 Thread ratnadeep ray
Hi Ogunsanya, Now I added the same as per your suggestion. Following is my urls.py contnent from django.urls import path from fusioncharts import views app_name = 'fusioncharts' urlpatterns = [ path('push-data/', views.push_data, name='push-data'), path('home/', views.home,

Django Admin: how to link to another model from one model list view ?

2020-06-25 Thread Olivier
Hello, Let say your app deals with Book and Author models. Within Django Admin, you can display a list of currently stored Books. I How can you implement the following: 1. For each Book entry within Book Listing page (like http://foobar.com/admin/myapp/book/), book's title and authors arr both

Re: using serializers with POST requests

2020-06-25 Thread maninder singh Kumar
Seems like the loop doesn't go anywhere but the "else" part where it says fail. Perhaps you need to relook keyword or positional arguments Maninder Kumar about.me/maninder.s.kumar

Re: Reverse for 'process_data' not found. 'process_data' is not a valid view function or pattern name.

2020-06-25 Thread Ogunsanya Opeyemi
Also include in your URL before your urlpatterns app_name=yourappname And in your template URL write {% url 'yourappname:process_data' ver %} And if you still have issues send the update you made and let me check. On Thursday, June 25, 2020, ratnadeep ray wrote: > Hi Ogunsanya, > > I