Re: Pagination - Not Working

2019-02-19 Thread Godson Rapture
Can you upload your code on github let me check where your problem is? On Tue, Feb 19, 2019, 6:43 AM Siddharth Tamang wrote: > Are you trying pagination using JavaScript or Django? > > On Mon, Feb 18, 2019 at 11:47 PM Aakash Baranwal > wrote: > >> Hello Everyone, >> >> I am new to Django and wo

Re: Pagination - Not Working

2019-02-19 Thread Aakash Baranwal
Hello, Thanks for offering me your help, but the problem is I can't upload it on internet as I have signed a Non Disclosure Agreement for the project in which I am working, so totally helpless in this case. However I might be able to give a specific portion of what you might need for resolving th

Re: Pagination - Not Working

2019-02-19 Thread Siddharth Tamang
Can you try this in your views.py? from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator views.py feedTextAll = feedText.objects.order_by('-feedTexDate') pages = Paginator(feedTextAll,5) pageNum = request.GET.get('page') feedtext = pages.get_page(pageNum) return render(request

Re: templates and Views

2019-02-19 Thread abdouramane mahamane
Thank you so much, for this reply that solves my problem :) Le lundi 18 février 2019 22:55:24 UTC+1, mohamed khaled a écrit : > > I think this link can help you > > https://www.google.com/url?sa=t&source=web&rct=j&url=https://stackoverflow.com/questions/12187751/django-pass-multiple-models-to-one

Re: templates and Views

2019-02-19 Thread abdouramane mahamane
Thank you so much, for this reply that solves my problem :) Le lundi 18 février 2019 16:15:05 UTC+1, abdouramane mahamane a écrit : > > I'm trying to show in one template .html multiple results of my views.py > class. > But when i add an other {%block content2 %} in my base.html, i have an > er

What is the difference between declaring a middleware in "MIDDLEWARE" setting vs inside ProtocolTypeRouter()?

2019-02-19 Thread Aung Khant
Hello, I am a new user to Django and Channels. As I mentioned, I believe you can infer from the title what I am getting at. Is it because one has to do with Channel and thus different way of using middleware? -- You received this message because you are subscribed to the Google Groups "Django

Insert object's data in a template without "extends".

2019-02-19 Thread Maurizio Mastria
Hi, I have a problem. How can I insert a data in a template? *Not by "extends"!* Thanks! base.html {% load static %} https://fonts.googleapis.com/css?family=Lobster&subset=latin,latin-ext"; rel ="stylesheet" type="text/css"> * <--- Here * {% b

Best option for wrapping a wsgi app

2019-02-19 Thread Anton Melser
Hi, I searched high and low but my Google-foo must be lacking. I want to wrap a wsgi app (https://github.com/tsudoko/anki-sync-server) and serve it under my Django site. After wasting large amounts of time working around this thinking it wasn't possible, I stumbled across https://github.com/2degre

Re: Websocket 200 error

2019-02-19 Thread flora . xiaoyun . huang
The redis issue solved, by revising redis configuration: config set stop-writes-on-bgsave-error no And the redis server can be restarted. On Monday, February 18, 2019 at 9:19:52 PM UTC-5, flora.xia...@gmail.com wrote: > > I am guessing maybe there is an issue with the redis-server? *The log I >

Re: Re: Composite Primary / Foreign Key support

2019-02-19 Thread Michal Petrucha
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi Lance, I see that you've already received a number of replies, but I'll give you my perspective, too. On Mon, Feb 18, 2019 at 08:26:43AM +, 'Ellinghaus, Lance J' via Django users wrote: > NONCONFIDENTIAL // EXTERNAL > So, basically, Django

Re: Pagination - Not Working

2019-02-19 Thread Godson Rapture
Check out simple is better than complex blog. It should have a topic on pagination to help you On Tue, Feb 19, 2019, 9:20 AM Aakash Baranwal wrote: > Hello, > > Thanks for offering me your help, but the problem is I can't upload it on > internet as I have signed a Non Disclosure Agreement for th

How to create model for this json data

2019-02-19 Thread optvisitor
Hi I have data like this { "Name" : "pk", "Applist" : ["zom","bc"], "Url": ["As","de"] } How to define field name for list I am not getting -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving em

RE: How to create model for this json data

2019-02-19 Thread Matthew Pava
You can use ForeignKey. Or ArrayField if you're using PostgreSQL as your backend. https://docs.djangoproject.com/en/2.1/ref/contrib/postgres/fields/#arrayfield -Original Message- From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of optvisi...@gmail.com

urls con clases

2019-02-19 Thread Abel Sena
no puedo configuralo -- 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 django-users

Re: urls con clases

2019-02-19 Thread carlos
Django LTS url(r'^$', IndexView.as_view(), name='index'), IndexView es tu clase que esta en views.py Django 2.x path('', IndexView.as_view(), name='index'), On Tue, Feb 19, 2019 at 11:21 AM Abel Sena wrote: > no puedo configuralo > > -- > You received this message because you are subscribed to

Re: Migration Issues when updating model's default primary key from id to uuid

2019-02-19 Thread Thomas Leo
I'm running django 1.11, have this same issue. Has this issue been fixed in later versions of django? Is there a workaround for 1.11? On Sunday, November 12, 2017 at 7:30:45 AM UTC-5, Liuyang Wan wrote: > > Thanks for the link. It’s interesting that two years past the bug is still > unresolved.

Re: urls con clases

2019-02-19 Thread Victor H. Velasquez Rizo
Hola Abel. Que exactamente en lo que estas teniendo problemas para configurar? On Tue, Feb 19, 2019 at 11:21 AM Abel Sena wrote: > no puedo configuralo > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and

Django admin unable to edit site - CMS links always redirect login page

2019-02-19 Thread Angela Checa
Dear every one: I've been searching for a solution for this problem but I can find an answer, please help me. The CMS does not allow to edit sites or do anything and always redirect to login page. I have a main site with an app, the domain is something like www.sitioprincipal.com and inside t

Re: Pagination - Not Working

2019-02-19 Thread Aakash Baranwal
It did not work. I tried making it using JavaScript like in websites if you might have seen when you press the button then only it shows the content or scrolls down. On Tue, Feb 19, 2019 at 2:01 PM Siddharth Tamang < tamangsiddhart...@gmail.com> wrote: > Can you try this in your views.py? > > fr

Re: Pagination - Not Working

2019-02-19 Thread Aakash Baranwal
Thanks a lot. I worked that out by making the Load More as a clickable button which when pressed will show the contents. On Tue, Feb 19, 2019 at 9:00 PM Godson Rapture wrote: > Check out simple is better than complex blog. It should have a topic on > pagination to help you > > On Tue, Feb 19, 20

Pip is not considered as an internal or external command

2019-02-19 Thread PARIMALLA SREEJAA
I have installed python in c drive. And when typed "pip" , im getting like pip is not considered as an internal or external command. Could any one plzz tell me the way to get rid of this -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Pip is not considered as an internal or external command

2019-02-19 Thread Alfredo Sumague
"pip" is a package management command used in installing software package(s) you need for a python project. So when you issue a "pip" command, a package name should follow, (eg. pip install xxx, where xxx is the package name. On Tue, Feb 19, 2019 at 6:57 PM PARIMALLA SREEJAA < mparimallasree...@g

Django scheduling/calendaring

2019-02-19 Thread Manu Febie
Hello Django developer, I have been assigned for my first real job as a developer. I have been asked to develop a *Learning Management System*. One of the components/apps this project must have is a way of managing training programs and projects and view them on a calendar. This is how my clien

Django admin unable to edit site - CMS links always redirect login page

2019-02-19 Thread Jason
This might be a better question for the django-cms project GitHub than here? I haven’t seen any cms questions here. -- 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

Re: How to create model for this json data

2019-02-19 Thread optvisitor
On Tuesday, February 19, 2019 at 10:02:32 PM UTC+5:30, optvi...@gmail.com wrote: > > Hi I have data like this > { > "Name" : "pk", > "Applist" : ["zom","bc"], > "Url": ["As","de"] > > } > > How to define field name for list I am not getting i define a class with foreign key but still