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
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
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
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
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
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
6 matches
Mail list logo