Re: problems with url and views - new to django

2019-04-21 Thread Victor H. Velasquez Rizo
*Hello Rob.* With the url "hello/", your trying to call the "hello" function on your view.py. *First*, you need to import "hello" to be able to use it. from *from lct_app.views import hello* *Second,* call the function. path('hello/', hello), *urls.py* from django.contrib import admin from

Re: Django Chat Help

2019-04-21 Thread Ahmed Ishtiaque
Hello! Shameless plug: I've been working towards making a chat app for Django developers to be able to use. You could check it out here if you want! Best, Ahmed On Sun, Apr 21, 2019 at 10:50 AM Fahad Bin Munir wrote: > how to create chatting system

Re: Django 2.2.0 StatReloader not responding to filechanges

2019-04-21 Thread jacob
I submitted a bug report and am working on a patch: https://code.djangoproject.com/ticket/30361 Also, it appears that some fixes to the StatReloader may be coming in 2.2.1 (or 2.3?) which could also help On Thursday, April 11, 2019 at 3:34:27 PM UTC-7, ja...@workflowy.com wrote: > > After more

problems with url and views - new to django

2019-04-21 Thread Rob W
setting up a new project. all good, loaded up the project on localhost. however, when creating a view then setting the url, it doesn't work. *urls.py* from django.contrib import admin from django.urls import path urlpatterns = [ path('admin/', admin.site.urls), path('hello/',

Re: want to Implement Inline editing in Django.. see this link(https://editor.datatables.net/examples/inline-editing/submitButton.html) want the some help with code. Thanks

2019-04-21 Thread iakash95768
On Sunday, April 21, 2019 at 11:21:56 PM UTC+5:30, iakas...@gmail.com wrote: > > http://django-datatable-view.appspot.com/x-editable-columns/ got an > example which is implemented in Django but failed to understand the code. > Need help in implementation. -- You received this message

Re: want to Implement Inline editing in Django.. see this link(https://editor.datatables.net/examples/inline-editing/submitButton.html) want the some help with code. Thanks

2019-04-21 Thread iakash95768
http://django-datatable-view.appspot.com/x-editable-columns/ got an example which is implemented in Django but failed to understand the code. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: url not redirecting?

2019-04-21 Thread silverstrings026
I fixed it, none of the suggestions worked. -- 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 post to this group,

Re: url not redirecting?

2019-04-21 Thread silverstrings026
**FIXED** -- 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 post to this group, send email to

Re: Storing HTML in DB using DJANGO

2019-04-21 Thread Sipum Mishra
thank you all guys for suggesting. can I plz get any tutorial for these so that I can learn that properly. On Sun, 21 Apr 2019 at 21:34, Joel Mathew wrote: > I fail to see the purpose of that. Serialisation is sufficient. Big > projects like wordpress store even big blog posts, which is html

Re: Storing HTML in DB using DJANGO

2019-04-21 Thread Joel Mathew
I fail to see the purpose of that. Serialisation is sufficient. Big projects like wordpress store even big blog posts, which is html like this. Sincerely yours, Joel G Mathew On Sun, 21 Apr 2019 at 20:20, Brian M wrote: > What if you convert the html to an array of bytes before storing? > >

Re: url not redirecting?

2019-04-21 Thread silverstrings026
It took away my public_posts page and replaced it for my home page. On Sunday, April 21, 2019 at 10:48:09 AM UTC-4, Victor H. Velasquez Rizo wrote: > > *Hello Silver.* > > *- On your URLCONFIG add * > path('', include('public_posts.urls')),*<=== Add* > > -* On your public_posts/urls.py

Re: Django Chat Help

2019-04-21 Thread PARTH PATIL
You can refer to this video tutorial, I found this pretty useful. https://youtu.be/Wv5jlmJs2sU This uses django channels to implement a asynchronous chat app. Best Regards, PARTH PATIL On Sun, 21 Apr 2019, 8:20 pm Fahad Bin Munir, wrote: > how to create chatting system using api in djano? >

Re: url not redirecting?

2019-04-21 Thread silverstrings026
That just swapped my home page for public_posts and took away the link ' New Post' -- 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: url not redirecting?

2019-04-21 Thread silverstrings026
Forgot to add that one of the pub_posts is now public_posts, still doesn't work but thanks for pointing out the fact that it is probably pretty stupid to have more than one thing with the same name, probably saved me a good amount of future headaches. -- You received this message because you

Re: url not redirecting?

2019-04-21 Thread silverstrings026
Didnt't work, changed to: (pub_posts urlpatterns = [ path('', views.pub_post_list, name='pub_posts'), path('', views.post_new, name='post_new'), path('', TemplateView.as_view(template_name='new_post.html'), name= 'new_post'), path('',

Re: Storing HTML in DB using DJANGO

2019-04-21 Thread Brian M
What if you convert the html to an array of bytes before storing? Then you’d convert from bytes array back to string when you retrieve. This way you’d store raw data. > On Apr 21, 2019, at 8:41 AM, Jani Tiainen wrote: > > Well after all, HTML is just plain text... Though you probably want

Django Chat Help

2019-04-21 Thread Fahad Bin Munir
how to create chatting system using api in djano? -- 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 post to this

Re: url not redirecting?

2019-04-21 Thread Victor H. Velasquez Rizo
*Hello Silver.* *- On your URLCONFIG add * path('', include('public_posts.urls')),*<=== Add* -* On your public_posts/urls.py add* app_name = 'public_posts' urlpatterns = [ path('', views.pub_post_list, name='pub_posts'), path('', views.post_new, name='new_post'),

Re: url not redirecting?

2019-04-21 Thread Gil Obradors
Hi! You have two entrys with same name path('', views.post_new, name='new_post'), path('', TemplateView.as_view(template_name='new_post.html'), name= 'new_post'), Try to change one Regards El dg., 21 d’abr. 2019, 16:18, va escriure: > Hello, i'm attempting to redirect to a 'new post'

url not redirecting?

2019-04-21 Thread silverstrings026
Hello, i'm attempting to redirect to a 'new post' page when someone clicks 'New Post'. Problem is, it redirects back to the public_posts page. the url in my HTML is {% url 'new_post' %} but when i inspect the element in my browser, it says the href=/public_posts/ and no matter what I do, I

Re: Storing HTML in DB using DJANGO

2019-04-21 Thread Jani Tiainen
Well after all, HTML is just plain text... Though you probably want to think to do some sanitization so you won't get nasty injections via html. On Sat, Apr 20, 2019 at 9:09 PM Sipum Mishra wrote: > Hi friends, > > I want to store a html in database using python and need to retrieve that > html

Re: Django - always getting False in form.is_valid()

2019-04-21 Thread Sipum Mishra
Hi Jani, the above solution is not working, still having the same problem. and that completed field is used later for cross_off and uncross the item in list. On Sun, 21 Apr 2019 at 17:36, Jani Tiainen wrote: > Hi, > > required attribute works in forms, not in models. For models fields that >

Re: Django - always getting False in form.is_valid()

2019-04-21 Thread Jani Tiainen
Hi, required attribute works in forms, not in models. For models fields that are not required in forms you need to use blank=True. Though that's not the right solution. Why are you including "completed" field in a form (which you validate for user input) if you are not going to have such a

Re: Django - always getting False in form.is_valid()

2019-04-21 Thread Sipum Mishra
if i do changes as above in model then it throws error like - class List(models.Model): File "F:\django\to_do_list\todo\models.py", line 6, in List completed = models.BooleanField(required=False) TypeError: __init__() got an unexpected keyword argument 'required' On Sun, 21 Apr 2019 at

Re: Django - always getting False in form.is_valid()

2019-04-21 Thread Sipum Mishra
Jani, Do you mean I need to change completed field in model like as below ? completed = models.BooleanField(default=False,required=False) On Sun, 21 Apr 2019 at 17:23, Sipum Mishra wrote: > Hi Jani, > form.errors gives error as - > > itemThis field is > required.< > /li> > > can u plz tell me

Re: Django - always getting False in form.is_valid()

2019-04-21 Thread Sipum Mishra
Hi Jani, form.errors gives error as - itemThis field is required.< /li> can u plz tell me where i did wrong? On Sun, 21 Apr 2019 at 16:43, Jani Tiainen wrote: > completed is a required field and you're not passing any value with it. If > you print form.errors you would should see that it

Re: Django - always getting False in form.is_valid()

2019-04-21 Thread Jani Tiainen
completed is a required field and you're not passing any value with it. If you print form.errors you would should see that it complains about "completed" "this field is required" Note that providing default value in a model is not same as making field optional. On Fri, Apr 19, 2019 at 2:05 PM

Re: Advanced permissions and role creation

2019-04-21 Thread Joel Mathew
Thanks a lot, guys. On Sun, 21 Apr, 2019, 3:58 PM Jani Tiainen, wrote: > Hi, > > We do in our applications pretty much same approach as Mike proposed in > his post. It's relatively efficient and works for both, UI and application > side pretty well and doesn't require building anything complex

Re: Advanced permissions and role creation

2019-04-21 Thread Jani Tiainen
Hi, We do in our applications pretty much same approach as Mike proposed in his post. It's relatively efficient and works for both, UI and application side pretty well and doesn't require building anything complex and pretty much everything you need is already built-in in Django. On Sun, Apr

making bots with Django for instagram

2019-04-21 Thread Saeed Pooladzadeh
Hello Please if you have any experience or idea on making bots for instagram with django share with me. thanx -- 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