Re: How to send dict to template and use it

2020-05-07 Thread 'Amitesh Sahay' via Django users
Your view seems to have incorrect render. Sent from Yahoo Mail on Android On Thu, 7 May 2020 at 11:25, Mohsen Pahlevanzadeh wrote: I have the following view function: def index(request, question_id):     latest_question_list = User.objects.all()

re_path(r'^admin/filebrowser/', fbsite.urls) - ValueError

2020-05-07 Thread Mike Dewhirst
Can anyone help with this please?   File "/var/www/train/train/urls.py", line 49, in     re_path(r'^admin/filebrowser/', fbsite.urls),   File "/usr/local/lib/python3.6/dist-packages/django/urls/conf.py", line 61, in _path     urlconf_module, app_name, namespace = view ValueError: not enough

Watch "How to use domain email with gmail account - connect send and receive emails in few steps" on YouTube

2020-05-07 Thread Anonymous Patel
https://youtu.be/-_MYP6m37SA Raj Patel -- 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 discussion on

Re: How to make Custom User Registration and Login

2020-05-07 Thread Anubhav Madhav
Thankyou so much Kushal!! On Wednesday, 6 May 2020 20:47:39 UTC+5:30, Kushal Neupane wrote: > > For you following web pages or video will help you. > > https://simpleisbetterthancomplex.com/tutorial/2017/02/18/how-to-create-user-sign-up-view.html > > https://www.youtube.com/watch?v=oZUb372g6Do

Re: How to make Custom User Registration and Login

2020-05-07 Thread Anubhav Madhav
Thankyou Camilo!! On Wednesday, 6 May 2020 20:42:10 UTC+5:30, Camilo Garcia wrote: > > This might come in handy > https://learndjango.com/tutorials/django-custom-user-model > > On Wednesday, May 6, 2020 at 5:09:29 AM UTC-5, Anubhav Madhav wrote: >> >> I am new to Django. I need to make a custom

Nonetype object is not subscriptable

2020-05-07 Thread sharu kuriakose
Hi guys... iam new to django Can you please help me to solve my problem. I need to work with openCv function cv2.imread(image_src) But when i work with that function, iam getting an error "Nonetype object is not subscriptable" -- You received this message because you are subscribed to the

Re: How to omit Admin field verbose name

2020-05-07 Thread Derek
I do something similar but not exactly the same. Perhaps like this (WARNING: untested code) under the class MyModelAdmin: def get_form(self, request, obj=None, **kwargs): form = super(MyModelAdminForm, self).get_form(request, obj, **kwargs) if form.base_fields:

Re: No module named 'blog'

2020-05-07 Thread Mukesh Badgujar
already added 'home.apps.HomeConfig', 'blog.apps.BlogConfig', 'shop.apps.shopConfig', one thing is that, i copied this app folder frm my other project, this is not created here On Sunday, 9 August 2015 22:43:38 UTC+5:30, Robin Lery wrote: > > Did you add your 'blog' app in the

Django tutorial, HttpResponseRedirect, sending multiple arguments

2020-05-07 Thread Ekberg Peter
I know something like this has been asked before but I never seen any answer that I can understand or that works. But I am very new on Django so maybe I could have missed it. But there must be an easy answer to my question. I am following the tutorial for Django and at section 4 they use

How to display pie chart using Django

2020-05-07 Thread ratnadeep ray
Hi all, I just started to work on Django and hence have limited knowledge about it. Now I need to design an app to display a pie chart based on some sample data. Can anybody please help me to do so? Is there any sample app existing which fulfills this requirement ? Thanks. -- You

Re: How to send dict to template and use it

2020-05-07 Thread Andréas Kühne
Hi, If you want to see something in the queryset you need to query it :) For example: {% for question in latest_question_list %} {{question.id }}{%endfor%} Or you can take the last or first item? {{ latest_question_list.first.id }} Regards, Andréas Den tors 7 maj 2020 kl 07:55 skrev

Re: Create a function which fill automatically a field in my models

2020-05-07 Thread Derek
Its unclear what you mean by "last ID" - and I cannot see the value of storing such as they are available in the database... But have a look at https://stackoverflow.com/questions/12649659/how-to-set-a-django-model-fields-default-value-to-a-function-call-callable-e The example is: from

User.objects.all() returns only one field

2020-05-07 Thread Mohsen Pahlevanzadeh
User.objects.all() only returns one field, I need to others fields such as first_name or last_name. How can I access others field? -- 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

Re: Django URL routing

2020-05-07 Thread Daniel Roseman
You have multiple URLs that are the same path. That can't work. One URL maps to one view. -- DR. On Thursday, 7 May 2020 11:40:09 UTC+1, Ronald Kamulegeya wrote: > > I am learning Django and progressing well but i am stuck on how to > configure the different urls to view functions. > I have

Re: Django URL routing

2020-05-07 Thread Ronald Kamulegeya
Hello Roseman, Please suggest how i can code the different Urls. On Thursday, May 7, 2020 at 3:24:28 PM UTC+3, Daniel Roseman wrote: > > You have multiple URLs that are the same path. That can't work. One URL > maps to one view. > -- > DR. > > On Thursday, 7 May 2020 11:40:09 UTC+1, Ronald

Re: User.objects.all() returns only one field

2020-05-07 Thread Daniel Roseman
On Thursday, 7 May 2020 12:47:21 UTC+1, Mohsen Pahlevanzadeh wrote: > > User.objects.all() only returns one field, I need to others fields > such as first_name or last_name. > > How can I access others field? > No it doesn't. It returns a queryset of objects, each of which has all the

Re: How to display pie chart using Django

2020-05-07 Thread Larry Martell
On Thu, May 7, 2020 at 6:39 AM ratnadeep ray wrote: > > Hi all, > > I just started to work on Django and hence have limited knowledge about it. > > Now I need to design an app to display a pie chart based on some sample data. > Can anybody please help me to do so? Is there any sample app

Re: No module named 'blog'

2020-05-07 Thread Mohsen Pahlevanzadeh
Where did you import your module? On Thu, May 7, 2020 at 3:09 PM Mukesh Badgujar wrote: > already added > > 'home.apps.HomeConfig', > 'blog.apps.BlogConfig', > 'shop.apps.shopConfig', > > one thing is that, i copied this app folder frm my other project, this is > not created here >

Re: Django tutorial, HttpResponseRedirect, sending multiple arguments

2020-05-07 Thread Andréas Kühne
Hi Peter, The thing is you need to handle this with your url files, your view function (or class) and your reverse call. So for example: urls.py path('blog///', detail) views.py: def detail(request, category, question_id): and finally the call to reverse: reverse('polls:results',

Re: Django URL routing

2020-05-07 Thread ROBSON SOUZA
You are missing parenteses right after as_view in urls.py Enviado do meu iPhone Em 7 de mai de 2020, à(s) 03:22, Ronald Kamulegeya escreveu: > I am learning Django and progressing well but i am stuck on how to configure > the different urls to view functions. > I have gone through

Re: Django URL routing

2020-05-07 Thread LGBS fine soul coders
Yaaahhh On Thu, 7 May 2020, 15:24 Daniel Roseman, wrote: > You have multiple URLs that are the same path. That can't work. One URL > maps to one view. > -- > DR. > > On Thursday, 7 May 2020 11:40:09 UTC+1, Ronald Kamulegeya wrote: >> >> I am learning Django and progressing well but i am stuck

Re: User.objects.all() returns only one field

2020-05-07 Thread Mohammed Alnajdi
User.objects.all() will return a queryset you can put it in a loop such as users = User.objects.all() for user in users: user.first_name And also there are other ways to get dict instead of queryset object but its up to you. Sent from my iPhone > On 7 May 2020, at 2:46 PM, Mohsen

Re: Django URL routing

2020-05-07 Thread Ronald Kamulegeya
Hi Roseman, Your comment pointed me to the right direction. I have finally cracked the mystery! Thanks so much! On Thursday, May 7, 2020 at 5:17:22 PM UTC+3, Ronald Kamulegeya wrote: > > Here is my attempt at creating unique path: > Still i get page not found error. The index page is not

Django Pipeline

2020-05-07 Thread Soumen Khatua
Hi Guys, I want to use Django-pipeline library, Does anyone know how I can use it? I'm also using AWS S3 storage. Any help will be appreciated. Regards, Soumen -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: Django tutorial, HttpResponseRedirect, sending multiple arguments

2020-05-07 Thread Ekberg Peter
Hello Andréas and thank you for the answer. But unfortunately it doesn't seem to do what I want or I just don't get it. What I really try to do is very simple, but I have been trying for two days now and feel I am close to give up on Django. Because if the simpliest and most common thing in

Re: Django tutorial, HttpResponseRedirect, sending multiple arguments

2020-05-07 Thread Ekberg Peter
This is what I had to do. Thanks to you I know how to think and fixed it. xx="EXTRA ARGUMENT" return HttpResponseRedirect(reverse('bsapp:result', args=(question.id, xx,))) path('//result/', views.result, name='result'), def result(request, question_id, xx): Den torsdag 7 maj 2020

Re: Django Media Static Files

2020-05-07 Thread Ilda Pedro
Hello, Jorge! Thanks Jorge it already worked! On Wed, May 6, 2020 at 3:38 PM Jorge Gimeno wrote: > > > On Wed, May 6, 2020 at 3:09 AM ilda.pedro1993 > wrote: > >> Hello, everyone! >> My name is Ilda, i'm getting a page not found when trying to load django >> media files. >> >> My django

Re: Django URL routing

2020-05-07 Thread Ronald Kamulegeya
Here is my attempt at creating unique path: Still i get page not found error. The index page is not opening too. urlpatterns = [ path("tenants/", views.TenantsListView.as_view(), name="index"), path("tenants/details",views.TenantDetailView.as_view(),name="detail"),

Re: Django tutorial, HttpResponseRedirect, sending multiple arguments

2020-05-07 Thread Ekberg Peter
Hi Again I finally got it to work now. return HttpResponseRedirect(reverse('bsapp:result', args=(question.id, xx,))) path('//result/', views.result, name='result'), (I think you mixed up the order of int:question here, you wrote question:int) xx="EXTRA ARGUMENT" def result(request,

Charts

2020-05-07 Thread hajar Benjat
Hello guys how are you doing? I want to create charts for an application, things like "delivery apps"... Who can help me with examples please -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

hai everyone, i am getting error in sending email portion, after submitting i got nothing in my mail. if anyone please help me

2020-05-07 Thread yammuna pari
def homeview(request): # return HttpResponse("Welcome to the store") if request.method =='POST': form = Uploader(request.POST) if form.is_valid(): Firstname=request.POST.get('Firstname','') Lastname=request.POST.get('Lastname','')

Re: Django tutorial, HttpResponseRedirect, sending multiple arguments

2020-05-07 Thread Andréas Kühne
Hi, Sorry for mixing those things up - I was writing from the top of my head and not really paying that much attention perhaps :) I would like to give you a few other pointers: 1. This is a bit biased but I would try to get away from function based views - because they tend to make you do a lot

Re: hai everyone, i am getting error in sending email portion, after submitting i got nothing in my mail. if anyone please help me

2020-05-07 Thread Motaz Hejaze
You dont have any error messages ??? Try to send the mail to your console first to test functionality On Thu, 7 May 2020, 8:49 pm Kasper Laudrup, wrote: > Hi Yammuna, > > It is very likely that the error is the reason why you're not getting > any mail. > > Hard to tell without knowing what

Re: hai everyone, i am getting error in sending email portion, after submitting i got nothing in my mail. if anyone please help me

2020-05-07 Thread Kasper Laudrup
Hi Mortaz, On 07/05/2020 22.09, Motaz Hejaze wrote: You dont have any error messages ??? Try to send the mail to your console first to test functionality That was pretty much the point is was trying to make in my reply to Yammuna. Kind regards, Kasper Laudrup -- You received this message

Re: Create a function which fill automatically a field in my models

2020-05-07 Thread Phako Perez
You can use default option while creating model Sent from my iPhone > On 7 May 2020, at 8:53, Derek wrote: > >  > Its unclear what you mean by "last ID" - and I cannot see the value of > storing such as they are available in the database... > > But have a look at >

Re: Charts

2020-05-07 Thread hajar Benjat
Okey thank you so much guys On Thu, May 7, 2020, 6:44 PM DAVID ALEJANDRO Pineda wrote: > Hi friend > There are some shortcuts like Highcharts, > But i recommend to learn D3, is more difficult but it's worth. > > In general you hace to create a list on serializable dicts (on the view on >

Re: Charts

2020-05-07 Thread Motaz Hejaze
What do you need exactly? I think this is a javascript issue, checkout chart.js On Thu, 7 May 2020, 6:36 pm hajar Benjat, wrote: > Hello guys how are you doing? > > I want to create charts for an application, things like "delivery apps"... > > Who can help me with examples please > > > > -- >

Re: hai everyone, i am getting error in sending email portion, after submitting i got nothing in my mail. if anyone please help me

2020-05-07 Thread Kasper Laudrup
Hi Yammuna, It is very likely that the error is the reason why you're not getting any mail. Hard to tell without knowing what kind of error you are getting though. I would suggest you try to fix the error and then see if your mail gets through. Kind regards, Kasper Laudrup -- You

Re: Django tutorial, HttpResponseRedirect, sending multiple arguments

2020-05-07 Thread Ekberg Peter
Thank you for the feedback and advices. I will sure check out Django girls. The mix of parameters was no problem, I figured that out. I was not sure though how to write the path. But now, at least I know how to send arguments and that's bothered me for a while. Now I am on the right track again.

Re: Charts

2020-05-07 Thread DAVID ALEJANDRO Pineda
Hi friend There are some shortcuts like Highcharts, But i recommend to learn D3, is more difficult but it's worth. In general you hace to create a list on serializable dicts (on the view on python) and put the list like a json on the template (the tag to_json or something like that) Then, when

Project Ideas

2020-05-07 Thread Deepti sharma
Hi everyone, I have recently finished two courses in which I made a Meeting planner project, and second was a portfolio using Django. Now I want to start one of my own, I know I will get stuck but that's how I will get better. Do you have any ideas? It would be helpful :) I want to create a

django templates stop to working html autocomplete

2020-05-07 Thread Eren ARTUÇ
hello everyone, Im using Vs.Code. When i enabled to django templates, my HTML autocomlete doesnt work. i want to work Python and HTML at the same time. How can i solve this problem ? Do you have any idea ? -- You received this message because you are subscribed to the Google Groups "Django

Re: Project Ideas

2020-05-07 Thread Anonymous Patel
Hey deepti we are working with startup www.ralpasoft.com If you are interested you can join ourteam where with other Developers you got same environment , so you would learn many things under guidance Thankyou. Mail me at r...@ralpasoft.com If interested Raj Patel On Fri, 8 May, 2020, 4:38 am

Re: How to omit Admin field verbose name

2020-05-07 Thread Mike Dewhirst
On 7/05/2020 7:24 pm, Derek wrote: I do something similar but not exactly the same. Perhaps like this (WARNING: untested code) under the class MyModelAdmin:     def get_form(self, request, obj=None, **kwargs):         form = super(MyModelAdminForm, self).get_form(request, obj, **kwargs)      

Re: django templates stop to working html autocomplete

2020-05-07 Thread Carson
What do you want to autocomplete but not? If you use Python as the main language, It so recommends that you convert IDE to PyCharm. Eren ARTUÇ於 2020年5月8日星期五 UTC+8上午7時09分18秒寫道: > > hello everyone, > > Im using Vs.Code. When i enabled to django templates, my HTML autocomlete > doesnt work. i