Re: How to call the super class instance variables in sub class in python3

2018-10-04 Thread daniel main
Use the super() builtin function. It returns an object that has the ability to instantiate your parent class. see sample code: class Animal(object): def __init__(self,*args,**kwargs): pass #print(types,'Base class with Animal') class Mammal(Animal): def __init__(self): supe

Re: I put 3 more fields on database models

2018-10-06 Thread daniel main
Hello. Try and make the migrations then migrate. I hope that helps On Oct 7, 2018 01:03, "Bleron Uka" wrote: Hi, My database has data there and i add 3 more inputs and i am having this error ?! -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-11 Thread daniel main
Hello, Have you tried adding an app_name = 'your_app_name' in the URLs.py file? Thanks On Oct 12, 2018 09:36, "Glen D souza" wrote: > Hi, > > Try after name-spacing url patterns i.e > > app_name = 'blog' > > urlpatterns = [ > path('', PostListView.as_view(), name='blog-home'), > path('us

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-12 Thread daniel main
Use id instead of pk On Oct 12, 2018 10:34, "Glen D souza" wrote: > > *def add_comment(request, slug):* > *post = get_object_or_404(Post, slug=slug)* > *if request.method == 'POST':* > *form = CommentForm(request.POST)* > *if form.is_valid():* > *comment = for

Network analysis tool

2018-10-25 Thread daniel main
Hello. I want to create a network troubleshooting tool that runs on a web interface. How efficient is Django channels. Are there alternatives? Thank you -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rece

Re: Network analysis tool

2018-10-26 Thread daniel main
t; channels is a great choice. > > If you want to have long running background processes then channels is > good for most things. Alternatively, Celery is a bit more mature and > full-featured. > > On October 25, 2018 3:21:58 AM CDT, daniel main > wrote: >> >> Hello