Re: I Am A Begginer Web Developer - Need Help With Finding A Term

2019-04-01 Thread ANi
Just query the data maybe by filtering and set the results in different variables, then pass them and you can get different data in one template. for querying you can see the document https://docs.djangoproject.com/en/2.1/topics/db/queries/ hope it helps Rok Klancar於 2019年4月2日星期二 UTC+8上午9時22分

Re: Upgrading Django from 1.11 to 2.2

2019-04-01 Thread dvij parekh
always go for 2nd last or 3rd last release of any framework or any language it will be more stable but if you want to go with 2.2 you can because it comes with LTS On Friday, March 29, 2019 at 2:22:10 PM UTC+5:30, Uri Even-Chen wrote: > > Hi, > > I want to upgrade Django from 1.11 to 2.2. Do I h

Re: Upgrading Django from 1.11 to 2.2

2019-04-01 Thread dvij parekh
always go for 2nd last or 3rd last release of any frame it will be more stable but if you want to go 2.2 you can because it comes with LTS On Friday, March 29, 2019 at 2:22:10 PM UTC+5:30, Uri Even-Chen wrote: > > Hi, > > I want to upgrade Django from 1.11 to 2.2. Do I have to upgrade first to >

Re: I need help please

2019-04-01 Thread dvij parekh
1. go and change admin url to drunke-octo-lama in main urls file i.e where your setting.py and wsgi.py is present 2. put {% url 'path_to_adminpannel/drunke-octo-lama' %} hope this helps you else please elaborate problem so i can get it right On Monday, April 1, 2019 at 6:32:31 PM UTC+5:30, Nanj

Showing old data

2019-04-01 Thread Swetank Subham Roy
Hello folks, I have created a hosted a django web app on apache2 using mod_wsgi, the content should automatically refresh everyday. But it is not getting refreshed automatically. I need to manually restart or reload the apache in order to make the changes reflect. I don't want to set cron to restar

Re: Urgently need help with deploying django on plesk.

2019-04-01 Thread Saurabh Jaiswal
Got django running gracefully on plesk. The issue was on the mod wsgi alias. On Mon, Apr 1, 2019 at 8:43 AM Mike Dewhirst wrote: > On 1/04/2019 1:47 pm, Saurabh Jaiswal wrote: > > Hey Mike, > > I have access to the pesk server as root user. > > I have been facing issue with the mod_wsgi setup p

Re: Upgrading Django from 1.11 to 2.2

2019-04-01 Thread Tim Graham
The advice is to go from one the major version to the next. Don't try to skip versions. -- 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...

Re: Django module view has no attribute?

2019-04-01 Thread Sithembewena L. Dube
I don't know the contents of the course you are taking, but it looks like the last import of views, which is "from counters import views" is overriding all the others and in it you have not defined a "posts" view. 1. You could solve this by aliasing your imports, e.g.: ``` from django.contrib impo

Django module view has no attribute?

2019-04-01 Thread drone4four
I’m taking a Udemy course by Nick Walter and rather than copying line by line, I’m trying to branch out and experiment on my own. The purpose of the website I am creating is for a small blog, with the ability to redact string input (in an HTML form) from the user. There is also a word count

Re: how can i get current username in model field ??

2019-04-01 Thread Guru Murthy
Hi Omar Ahmed, You cannot give the user model value to the field that you can do in views.py and forms.py. visit more about how to create forms in django. On Mon, 1 Apr, 2019, 7:09 PM Joel Mathew, wrote: > This does not make sense to me. A model is not a dynamic entity. It is > something that'

I Am A Begginer Web Developer - Need Help With Finding A Term

2019-04-01 Thread Rok Klancar
Hello developers! Much respect to you all. I have just finished a couple of hours browsing the web, but found no solution. I guess my problem is simply *not knowing the right term *for the thing that I am trying to make (in Django of course). Brief description: I have made a class 'Post' in *m

Re: how can i get current username in model field ??

2019-04-01 Thread Ing.Daniel Bojorge
Here I let you how I do. https://debsconsultores.blogspot.com/2018/12/agregar-usuario-crea-en-modelo.html Dios L@s Bendiga Saludos, [image: --] daniel.bojorge [image: http://]about.me/daniel.bojorge *Curso Desarrollo Web con Python usando D

Re: how can i get current username in model field ??

2019-04-01 Thread omar ahmed
ok i solved it name = request.user.username form = CommentForm(initial={'author': name}) return render(request, 'core/add_comment_to_news.html', {'form':form On Monday, April 1, 2019 at 6:02:21 PM UTC+2, omar ahmed wrote: > > explain please > > On Monday, April 1, 2019 at 3:57:48 PM UTC+2, Online

Re: how can i get current username in model field ??

2019-04-01 Thread omar ahmed
explain please On Monday, April 1, 2019 at 3:57:48 PM UTC+2, OnlineJudge95 wrote: > > +1 > DoesNotMakesSenseError("Author of any comment should not be related to the > currently logged in user") > > On Mon, Apr 1, 2019, 7:09 PM Joel Mathew > > wrote: > >> This does not make sense to me. A model

Re: how to find out if instagram accept the username and password of the bot?

2019-04-01 Thread Saeed Pooladzadeh
Thanks for your help.maybei cant transfer because my English is not good. See we have two authentications: in our bot site and in the Instagram I don't mean authentication in our bot site I mean in the Instagram app. If the user entered wrong Instagram credentials how we can authenticate this?

Re: Must be my and and can't be my code -- tracing back a URL pattern type mismatch

2019-04-01 Thread nm
Then I'd suggest you try commenting out the relevant settings and urls (urlpatterns = [path('__debug__/', include(debug_toolbar.urls)),] or whatever you have there), and see what happens when you run `./manage.py check`. I once had a url-related problem that only appeared when I ran tests; it

Re: how can i get current username in model field ??

2019-04-01 Thread Test Bot
+1 DoesNotMakesSenseError("Author of any comment should not be related to the currently logged in user") On Mon, Apr 1, 2019, 7:09 PM Joel Mathew wrote: > This does not make sense to me. A model is not a dynamic entity. It is > something that's created beforehand. Getting the current username in

Re: how can i get current username in model field ??

2019-04-01 Thread omar ahmed
ok i understood does it work : request.user.username On Monday, April 1, 2019 at 3:39:25 PM UTC+2, Joel Mathew wrote: > > This does not make sense to me. A model is not a dynamic entity. It is > something that's created beforehand. Getting the current username into > model should be done in

Re: I need help please

2019-04-01 Thread Joel Mathew
It's supposed to be an example. Sincerely yours, Joel G Mathew On Mon, 1 Apr 2019 at 19:12, dvij parekh wrote: > link is not working > > > On Mon, Apr 1, 2019 at 6:32 PM Nanjuki Saidat > wrote: > >> Hi all, >> I am Saidat a new django developer, i need help on how to go about this >> " Chan

Re: Must be my and and can't be my code -- tracing back a URL pattern type mismatch

2019-04-01 Thread Josh Marshall
I do in fact use Django Debug Toolbar. On Mon, Apr 1, 2019 at 9:19 AM nm wrote: > Do you use any additional packages like e.g. Django Debug Toolbar? Or > anything else that could mess with your urls? This is just a wild guess, > but since nobody has answered with a better idea yet... > > On Sund

Re: I need help please

2019-04-01 Thread dvij parekh
link is not working On Mon, Apr 1, 2019 at 6:32 PM Nanjuki Saidat wrote: > Hi all, > I am Saidat a new django developer, i need help on how to go about this " > Change > admin portal URL to more obvious path and add link in side menu to admin > settings for admin users". In summary: > > >

Re: how can i get current username in model field ??

2019-04-01 Thread Joel Mathew
This does not make sense to me. A model is not a dynamic entity. It is something that's created beforehand. Getting the current username into model should be done in your logic (views), or the template Sincerely yours, Joel G Mathew On Mon, 1 Apr 2019 at 19:01, omar ahmed wrote: > i want to

how can i get current username in model field ??

2019-04-01 Thread omar ahmed
i want to put value of logged in user.username in author field class Comment(models.Model): leaguenews = models.ForeignKey(LeagueNews, on_delete= models.CASCADE, related_name='comments') author = models.CharField(max_length=200) text = models.TextField() -- You received this message because you

Re: Django 2.2 released.

2019-04-01 Thread Carlton Gibson
Oops, typo there: > ...Django 2.0... That should say "Django 2.1 will receive security and data loss fixes until December 2019". C. On Monday, 1 April 2019 15:19:43 UTC+2, Carlton Gibson wrote: > > Django 2.2, the next long-term support release, is now available: > > *https://www.djangoprojec

Django 2.2 released.

2019-04-01 Thread Carlton Gibson
Django 2.2, the next long-term support release, is now available: https://www.djangoproject.com/weblog/2019/apr/01/django-22-released/ With the release of Django 2.2, Django 2.1 has reached the end of mainstream support. The

Re: Must be my and and can't be my code -- tracing back a URL pattern type mismatch

2019-04-01 Thread nm
Do you use any additional packages like e.g. Django Debug Toolbar? Or anything else that could mess with your urls? This is just a wild guess, but since nobody has answered with a better idea yet... On Sunday, 31 March 2019 04:31:42 UTC+2, Josh Marshall wrote: > > I'm helping out on a project,

I need help please

2019-04-01 Thread Nanjuki Saidat
Hi all, I am Saidat a new django developer, i need help on how to go about this " Change admin portal URL to more obvious path and add link in side menu to admin settings for admin users". In summary: 1. i want to change URL string to more intuitive URL (i.e. fhp.example.com/drunken-octo-

Django Hosting

2019-04-01 Thread siva.gatti
I hosted my Django application on aws but its showing error Your WSGIPath refers to a file that does not exist.. How can i resolve this please provide me some documentation to host my python application -- You received this message because you are subscribed to the Google Groups "Django users

Re: Blog application

2019-04-01 Thread Alison Mukoma
Hello Thomas, Pehaps the first thing would be to link your model to your prefered User model, Django provides you with a default though. And then you can play with the ORM querysets to filter currently active user related entries. But we could be more helpful if you shared more details on your im

Re: Blog application

2019-04-01 Thread Omar Abou Mrad
Dear Thomas, A little bit more information would give us more insight on how to help you. What are you currently struggling with? Can you show us your models code? Regards, On Mon, Apr 1, 2019 at 3:03 PM Thomas Mathias wrote: > Hello guys i have a django blog app and wanted to fetch all the p

Blog application

2019-04-01 Thread Thomas Mathias
Hello guys i have a django blog app and wanted to fetch all the post of the logged in user such that he is able to delete them.help guys -- 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

Django bugfix release 2.1.8

2019-04-01 Thread Carlton Gibson
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2019/apr/01/bugfix-release/ -- 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 emai

Re: I am on a e-commerce website on a video from youtube and I am having problems with stripe

2019-04-01 Thread Patrice Chaula
I fixed the problem I forgot to put this statement -> ```customer.sources.create(source='tok_visa')``` On Friday, 29 March 2019 17:30:00 UTC+2, Chetan Ganji wrote: > > I am not sure about this. > > But the issue seems to be that the user in question has a stripe account > and that stripe accou

My page is not loading css correctly

2019-04-01 Thread Patrice Chaula
I am learning django framework for building websites. I am trying to style my page with css. I have gone through the tutorial for managing static files in django. I have done every step mentioned. I am trying to display a jumbtron with a purple background and white text. The code is below. Only

Re: Upgrading Django from 1.11 to 2.2

2019-04-01 Thread Derek
The upgrade doc has good, general advice but does not specifically address the issue of LTS-to-LTS upgrades; I must admit I am a bit disappointed as I thought that there would be explicit, official support for this migration (and its one of the reasons I have stayed on the older LTS up to now).