Re: django.urls.exceptions.NoReverseMatch: 'courses' is not a registered namespace

2020-04-23 Thread Raja Sekar Sambath
decorating get_absolute_url with @staticmethod may help I think On Fri, 24 Apr 2020 at 00:35, Bruno Gama wrote: > I tried it, but happens the same error. > > Le jeu. 23 avr. 2020 à 13:54, Jorge Gimeno a > écrit : > >> >> >> On Thu, Apr 23, 2020, 7:46 AM Bruno Gama wrote: >> >>> I have a probl

problem with feed

2020-04-23 Thread carlos
Hi, i have a website with SSL certificate but when create feed syndication the link protocol always is http why? how to change to https? in site_id a put only www.mydomain.com in syndication say http://www.mydomain.com/news/ any idea o link to find the problem in my setting put this SECURE_PROX

Re: Collaborators wanted

2020-04-23 Thread mohamed khaled
I can work with you about add design I have good knowledge in semantic I created two apps and I have worked in third app form a while this my repo with my friend all theses project I used bootstrap django semantic django-filter and etc On Tuesday, 21 April 2020 23:20:24 UTC+2, John McClain wro

Re: Collaborators wanted

2020-04-23 Thread mohamed khaled
this my repo https://github.com/khaldon On Friday, 24 April 2020 06:23:41 UTC+2, mohamed khaled wrote: > > I can work with you about add design I have good knowledge in semantic I > created two apps and I have worked in third app form a while this my repo > with my friend all theses project I us

Re: Can I use Django for client-server communication ?

2020-04-23 Thread mohamed khaled
if you have different apps in a different platform or like a desktop app or mobile app you communicate with them or with a website using API in Django has a very good package called Django REST framework you can take your result of your GUI you can serialize or convert this data to JSON and send

Re: Success Message after Submitting a form

2020-04-23 Thread mohamed khaled
just use SuccessMessageMixin from django.contrib.messages.views import SuccessMessageMixin class PostCreateView(LoginRequiredMixin,SuccessMessageMixin, CreateView): model = Post fields = ['caption', 'design'] template_name = "post_form.html" success_url = '/score' success_mess

Success Message after Submitting a form

2020-04-23 Thread Ahmed Khairy
I have created this class with the success message but I am not receiving the success message I requested, other pages are showing them but this one is not What might be wrong? In the views: class PostCreateView(LoginRequiredMixin, CreateView): model = Post fields = ['caption', 'desig

Re: django.urls.exceptions.NoReverseMatch: 'courses' is not a registered namespace

2020-04-23 Thread Bruno Gama
I tried it, but happens the same error. Le jeu. 23 avr. 2020 à 13:54, Jorge Gimeno a écrit : > > > On Thu, Apr 23, 2020, 7:46 AM Bruno Gama wrote: > >> I have a problem since I tried to use get_absolute_url(self): to enter in >> a url beyond a photo. When I used , my index.html stopped running.

Re: NoReverseMatch at /update-orders/12 Reverse for 'update_order' with arguments '('',)' not found. 1 pattern(s) tried: ['update\\-orders/(?P[0-9]+)$']

2020-04-23 Thread Anonymous Patel
Hey sergei. Here is group know as errormania. This is group of Developers who are solving this errors we developer's are facing. And here is the. Link which can help you so take a look and let them know you liked this channel. If you like it they have telegram channel @errormania you can join that

Re: Django Error - 'staticfiles' is not a registered tag library. Must be one of: admin_list admin_modify admin_urls

2020-04-23 Thread mourice otieno Oduor
On Tuesday, 10 December 2019 11:00:32 UTC-5, Balaji wrote: > > Hi > > I am getting error for every Project. > > I created new environment and reinstalled python and Django. > > emplateSyntaxError at / > > 'staticfiles' is not a registered tag library. Must be one of: > admin_list > admin_modify

NoReverseMatch at /update-orders/12 Reverse for 'update_order' with arguments '('',)' not found. 1 pattern(s) tried: ['update\\-orders/(?P[0-9]+)$']

2020-04-23 Thread Sergei Sokov
Hello everybody I have a problem: NoReverseMatch at /update-orders/12 Reverse for 'update_order' with arguments '('',)' not found. 1 pattern(s) tried: ['update\\-orders/(?P[0-9]+)$'] Request Method: GET Request URL: http://192.168.0.249:8000/update-orders/12 Django Version: 3.0.5 Exception Typ

Re: Beginner question

2020-04-23 Thread Chucky Mada Madamombe
Hello, You need to create views and urls and a templates. Read more on the Django documentation. Regards Chuck G. Madamombe NAM: +264 81 842 1284 RSA: +27 78 208 7034 Twitter: @chuckygari Skype: chuckygari Facebook: Chucky Mada Madamombe LinkedIn: Chucknorris Garikayi Madamombe On Thu, 23 Apr 2

Re: Problem with user.username

2020-04-23 Thread Allison Tretina
I have two typos on line 6 and 9. My bad. >>> list(get_user_model().*objects.filter*(is_superuser=True).values_list('username', flat=True)) >>> list(get_user_model().*objects.filter*(is_superuser=True).values_list('password', flat=True)) On Thu, Apr 23, 2020 at 1:03 PM Allison Tretina wrote:

Re: Problem with user.username

2020-04-23 Thread Allison Tretina
Open the python shell in your terminal. $ python3 manage.py shell Import the modules to access your admin values. >>> from django.contrib.auth import get_user_model Get the username first. >>> list(get_user_model().objects.fileter(is_superuser=True).values_list('username', flat=True)) ['someus

Re: Problem with user.username

2020-04-23 Thread Jorge Gimeno
On Thu, Apr 23, 2020, 8:59 AM Bishop Akolgo wrote: > i have a similar problem. when i installed the env and django it did not > require me to create password but after successfully installing django and > trying to open admin, i need password and i cannot enter so i am stuck. > Can someone help

Re: is there any way to django3.0 & oracle 11g together?

2020-04-23 Thread Benjamin Daneker
I just ran into the same issue, my company only recently upgraded to 11g and they won't be upgrading again anytime soon. I've coded in a number of languages over the past several years but I'm still very new to Python, Django, Oracle, and databases in general. Creating the tables by hand is def

Re: django.urls.exceptions.NoReverseMatch: 'courses' is not a registered namespace

2020-04-23 Thread Jorge Gimeno
On Thu, Apr 23, 2020, 7:46 AM Bruno Gama wrote: > I have a problem since I tried to use get_absolute_url(self): to enter in > a url beyond a photo. When I used , my index.html stopped running. > > Here I have the top level url.py > > from import adminfrom django.urls import path, includefrom sim

Re: Problem with user.username

2020-04-23 Thread Bishop Akolgo
i have a similar problem. when i installed the env and django it did not require me to create password but after successfully installing django and trying to open admin, i need password and i cannot enter so i am stuck. Can someone help me? On Tuesday, July 12, 2011 at 7:31:27 AM UTC+1, Supr

Re: Beginner question

2020-04-23 Thread Anonymous Patel
https://www.youtube.com/channel/UCxxPBCkto7W8MX6TMctgLqw This group of Developers on YouTube provide with solutions to all programming errors you can always ask them for the solutions. Follow there telegram channel @errormania Raj Patel On Thu, 23 Apr, 2020, 8:15 pm dradam lomas, wrote: > Hel

django.urls.exceptions.NoReverseMatch: 'courses' is not a registered namespace

2020-04-23 Thread Bruno Gama
I have a problem since I tried to use get_absolute_url(self): to enter in a url beyond a photo. When I used , my index.html stopped running. Here I have the top level url.py from django.contrib import adminfrom django.urls import path, includefrom simplemooc.core import views, urlsfrom simple

Re: Reg: Django signal not working

2020-04-23 Thread sahil khan
https://youtu.be/lHQI9ydQlSU Here is the Link for your Problem. if you like the solutions please like share and subscribe errormania. in your groups and join our telegram channel: @errormania And share in your groups and with other developer friends thank you On Wed, 22 Apr 2020, 8:30 pm Jorge

Long list in queryset's __in lookup

2020-04-23 Thread Le Hai Pham
Hi everyone, I am having an issue with the queryset's __in lookup. The story is that we need to filter within a very long list. E.g. users = User.objects.filter(id__in=long_list_uids).filter(**logic_conditions ). Since the long_list_uids is really long (Around 20k items), it will be ineffecti

Beginner question

2020-04-23 Thread dradam lomas
Hello there! I am just starting out! I need help knowing how to get past this screen. I'm just typing "Hello world", right now, but I plan to make a website using Python. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

django.urls.exceptions.NoReverseMatch: 'courses' is not a registered namespace

2020-04-23 Thread Bruno Gama
Hi, I have a problem since I tried to use get_absolute_url(self): to enter in a url beyond a photo. When I used , my index.html stopped running. Here I have the top level url.py from django.contrib import admin from django.urls import path, include from simplemooc.core import views,

Re: Django pdfs

2020-04-23 Thread Perceval Maturure
thanks Lunga I will share once im done On Thu, Apr 23, 2020 at 2:35 PM Lunga Baliwe wrote: > I don't know about the download button but the PDF file should be just a > normal file like an image file > Check this Django admin >

Re: Django pdfs

2020-04-23 Thread Lunga Baliwe
I don't know about the download button but the PDF file should be just a normal file like an image file Check this Django admin cookbook for working with django admin, there's an example of downloading a csv hopefully it

Re: Django pdfs

2020-04-23 Thread Lunga Baliwe
Also check https://docs.djangoproject.com/en/3.0/ref/models/instances/#get-absolute-url Kind regards, Lunga Baliwe On Thu, Apr 23, 2020 at 1:04 PM Lunga Baliwe wrote: > Hi Perceval, > > On production I think you have to allow access to your MEDIA path, I > normally do this on the apache config

Re: Django pdfs

2020-04-23 Thread Lunga Baliwe
Hi Perceval, On production I think you have to allow access to your MEDIA path, I normally do this on the apache config per site. Do you mind sharing your code or maybe screen shots of what appears on the admin screen. Also it maybe be worth to return a name or url path like __str__

Re: hosting django app on app engine

2020-04-23 Thread Nick Sarbicki
I've set Django up on app engine a few times and every time it's a massive struggle. App engine wasn't really designed to work well with Cloud SQL as it's not a dynamically scalable data store, it is expected that you use google datastore (or firestore nowadays) - which isn't ideal for django as i

Re: Django pdfs

2020-04-23 Thread Perceval Maturure
Hi Lunga When debug mode is False in production the url link of the file is not accessible in admin which is ok for security reasons but in admin I can download the file for preview Regards Perceval On Wed, 22 Apr 2020 at 18:39, Lunga Baliwe wrote: > Maybe you can check Django FileField >