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 getting error?

class keywordfield(models.Model):
keyword=models.CharField(max_length=50,null=True)
appNamefield=models.ForeignKey("appNamefield", on_delete=models.CASCADE)






class appNamefield(models.Model):
appName = models.CharField(max_length=50,null=True)


serializer class
class appDetailsSearilizer(serializers.ModelSerializer):
class Meta:
model = keywordfield


fields = ('id','keyword','appNamefield')

json data

{
  
"keyword": "food",
  "appNamefield":["j","l"]

  
}


error
dict_items([('required', 'This field is required.'), ('null', 'This field may 
not be null.'), ('invalid', 'Invalid data. Expected a dictionary, but got 
{datatype}.')])

 




 

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/914062e6-1475-4653-8010-58a43b5bacb6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9f6e118e-a18b-4470-b382-42cb799e11d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 client wants it. However, I 
have never developed a calender before, so I did my research first on 
Django calendars. There are some tutorials online regarding this topic. But 
I also see there are a ton of ready to use Django Packages for this. So 
basically what I would like to know is if anyone has any experience with 
the Django calendar packages and would recommend me one. 

Thank you.

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a62b855b-94ef-4eee-b173-e6fc336d3424%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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...@gmail.com> wrote:

> 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 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@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/e4350137-3200-4f16-bbdb-6845cabe11f9%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGF6mrTkuJtAxXMMrieEz7h1H49318h4O8pK3heQRMB-c3Veaw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e4350137-3200-4f16-bbdb-6845cabe11f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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, 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 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 this issue.
>>
>> I am extremely sorry about this.
>>
>> On Tue, Feb 19, 2019 at 1:38 PM Godson Rapture 
>> wrote:
>>
>>> Can you upload your code on github let me check where your problem is?
>>>
>>> On Tue, Feb 19, 2019, 6:43 AM Siddharth Tamang <
>>> tamangsiddhart...@gmail.com> 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 working towards developing a web app where 10
> posts appear at a time with a "Load More" option given at last which when
> clicked shows the next 10 posts. I am not able to find what is going wrong
> with the code.
>
> Also, it is not showing the character counter for the textbox, so
> kindly help me with that as well.
>
> I am sending the screenshot of the code, pagination.py file.
>
> Thank You in advance
>
> --
> 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@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALr9hQ02EKRB%3DUjPfgjX1Q1%2BG_QxxBovM7Xv_J9Y-Q%3DiwMLo_A%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


 --
 Thank you
 Siddharth Tamang
 AWS Certified Solutions Architect - Associate

 --
 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@googlegroups.com.
 Visit this group at https://groups.google.com/group/django-users.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CADBOudsyrwDg%3DzcG3SgFMVnosOUtym%2BeR3d7UPXEa9GnRz7Opw%40mail.gmail.com
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>> --
>>> 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@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAEUEpOTUP_-rdoY8p4%2BfT4%2BTEmCLoSFyLQ1L%3DsdhfPkeHtY3rw%40mail.gmail.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CALr9hQ2Wvq0woYMTtze_erq65trSxVi-76FXR0HvmHVoCPNZxw%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To 

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?
>
> 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, 'index.html',{'feedtext':feedtext})
>
>
> and then in your html file where you want to show paginated records
>
> {% for feedtext in feedtext%}
>
> > 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@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CALr9hQ02EKRB%3DUjPfgjX1Q1%2BG_QxxBovM7Xv_J9Y-Q%3DiwMLo_A%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> Thank you
> Siddharth Tamang
> AWS Certified Solutions Architect - Associate
>
> --
> 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@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADBOudsyrwDg%3DzcG3SgFMVnosOUtym%2BeR3d7UPXEa9GnRz7Opw%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
 --
 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@googlegroups.com.
 Visit this group at https://groups.google.com/group/django-users.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CALr9hQ1CRSweCoycg0AfyiwG9LFb%3DZ2NL7oW7BMPuBg8qk%2B2GA%40mail.gmail.com
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>
>>> --
>>> Thank you
>>> Siddharth Tamang
>>> AWS Certified Solutions Architect - Associate
>>>
>>> --
>>> 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@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CADBOudtmJpskP-K_5%3D24BOXExeNq0%3DreM4nQZbWLaVrJVo0k8Q%40mail.gmail.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CALr9hQ2%2Brp-ih4YCS34PYw3nxFwvvT-EG0DqAdbJ4taLunDHYQ%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> Thank you
> Siddharth Tamang
> AWS Certified 

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 this portal I 
have three links for access other apps like this:

www.sitioprincipal.co/app2

www.sitioprincipal.co/app3

www.sitioprincipal.co/app4

All the apps were configured in Apache and for sometime the accesss to CMS 
(admin of the site) worked fine, but recently (i dont know why) when I 
loggin into any of the cms of app2, app3 and app4 after correct login it 
displays the first admin interface of site 
http://www.sitioprincipal.com/es/admin/ with the list of administration 
options and links:

Authentication and Authorization Groups 
Users 
Cmsplugin_Filer_Image Thumbnail options 
django CMS Pages 
Static placeholders 
Filer Folders   
Thumbnail options 
Sites Sites

but all the links and buttons seems to be bad because always redirects to 
login page again and it is imposible to edit the site pages or do anything 
else.  This happend in CMS of all sites but not in the main site 
www.sitioprincipal.com, in that CMS everything works well.  Please help me 
to find out how to fix this problem.

This is the version I have:

django-cms 3.2.5 

Django 1.9.5   

This is a part of the settings.py file of the main site 
www.sitioprincipal.com

# Application definition

INSTALLED_APPS = [
'cms',
'treebeard',
'menus',
'sekizai',
'easy_thumbnails',
'filer',
'mptt',
'cmsplugin_filer_image',
'cmsplugin_filer_link',
'djangocms_admin_style',
'reversion',
'djangocms_text_ckeditor',
'djangocms_flash',
'coleccionesonline.apps.ColeccionesonlineConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
]

# Módulos de migración para los plugins de django-filer
MIGRATION_MODULES = {
'cmsplugin_filer_image': 'cmsplugin_filer_image.migrations_django',
'cmsplugin_filer_link': 'cmsplugin_filer_link.migrations_django'
}

MIDDLEWARE_CLASSES = [
'cms.middleware.utils.ApphookReloadMiddleware',
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'cms.middleware.user.CurrentUserMiddleware',
'cms.middleware.page.CurrentPageMiddleware',
'cms.middleware.toolbar.ToolbarMiddleware',
'cms.middleware.language.LanguageCookieMiddleware',
]

# Módulo de urls
ROOT_URLCONF = 'sitioprincipal.urls'

# Sessión manejada por cookies
SESSION_ENGINE = 'django.contrib.sessions.backends.signed_cookies'

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR,'sitioprincipal','templates'),],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
'sekizai.context_processors.sekizai',
'cms.context_processors.cms_settings',
],
},
},
]

WSGI_APPLICATION = 'sitioprincipal.wsgi.application'

# CMS settings
SITE_ID = 1

...

Thanks for any kind of help.


Angela.

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0fc51920-d318-4d96-a1d0-37a4d2affcd7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d42a1294-cf06-471f-bc13-ee492482a361%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 



Atte...,.
Vìctor Hugo Velàsquez Rizo
Cali - Colombia

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFCXTzgz4q2dcZBRfvTw128vMo7diYRjECuzgRXxo99F5SMNBw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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.

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/361af02d-2b75-41fa-9a4b-de248cb71dbb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d42a1294-cf06-471f-bc13-ee492482a361%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
att.
Carlos Rocha

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAM-7rO1y-7nnXaQvxZJAv3mHjoFiJFwJ1yfBL6BFa-x%3D2r1VOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d42a1294-cf06-471f-bc13-ee492482a361%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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
Sent: Tuesday, February 19, 2019 10:02 AM
To: Django users
Subject: How to create model for this json data

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 emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1dbdd1f4-6d19-4cc7-828b-e360395edf6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b5f32b6b7e4643d19fdb30c83b8bb229%40iss2.ISS.LOCAL.
For more options, visit https://groups.google.com/d/optout.


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 emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1dbdd1f4-6d19-4cc7-828b-e360395edf6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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 this issue.
>
> I am extremely sorry about this.
>
> On Tue, Feb 19, 2019 at 1:38 PM Godson Rapture 
> wrote:
>
>> Can you upload your code on github let me check where your problem is?
>>
>> On Tue, Feb 19, 2019, 6:43 AM Siddharth Tamang <
>> tamangsiddhart...@gmail.com> 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 working towards developing a web app where 10
 posts appear at a time with a "Load More" option given at last which when
 clicked shows the next 10 posts. I am not able to find what is going wrong
 with the code.

 Also, it is not showing the character counter for the textbox, so
 kindly help me with that as well.

 I am sending the screenshot of the code, pagination.py file.

 Thank You in advance

 --
 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@googlegroups.com.
 Visit this group at https://groups.google.com/group/django-users.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CALr9hQ02EKRB%3DUjPfgjX1Q1%2BG_QxxBovM7Xv_J9Y-Q%3DiwMLo_A%40mail.gmail.com
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>
>>> --
>>> Thank you
>>> Siddharth Tamang
>>> AWS Certified Solutions Architect - Associate
>>>
>>> --
>>> 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@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CADBOudsyrwDg%3DzcG3SgFMVnosOUtym%2BeR3d7UPXEa9GnRz7Opw%40mail.gmail.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAEUEpOTUP_-rdoY8p4%2BfT4%2BTEmCLoSFyLQ1L%3DsdhfPkeHtY3rw%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALr9hQ2Wvq0woYMTtze_erq65trSxVi-76FXR0HvmHVoCPNZxw%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the 

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 will not be supporting Composite Primary Keys
> in the future?
> 
> Lance

That is not what I wrote – it is almost certainly possible for Django
to support this, but it will take a lot of effort, and a relatively
large refactor of ORM internals, enough so that it is unlikely to
happen unless someone steps up to sponsor the work over an extended
period of time.

Just to give you an idea of how much effort is needed here,
personally, I have spent well over half a year working on this full
time under GSoC, with support from some really skilled and smart
Django committers (taken all together, with all the research, and
trying to keep up with django master for some time, it might be close
a year, even, though spread over a much longer period of time), and it
still wasn't enough. Of course, I'm no 10x rockstar ninja, so someone
else might get the job done faster, but it's still a fair amount of
work.

There's a lot of material out there outlining how one might go about
this, the two DEPs were already pointed out by someone else, and the
latest thread on django-developers@ that summarized the topic was
https://groups.google.com/d/topic/django-developers/wakEPFMPiyQ/discussion
The one notable thing that is missing from all design documents that
I've seen (or written) is how to make this work with migrations.
Interactions with most other parts of Django have been described at
some length already.

This answer probably won't help you solve your immediate problem, and
I get that it's frustrating. Either way, that's where we are today.

Cheers,

Michal
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQIcBAEBCgAGBQJcbBq2AAoJEHA7T/IPM/kl/oQQAIGotHVDPhiD646CZ3hACeqX
c0+U9g2fwhDl8yVauh+Ra9BSCY74TBYNky72PpBOJJF27q+QTTaGObG7j+Iiua/T
GWMYQNixaZrxxKhDYTO2Cpw9/2vsKGG92+ZjKMLV92dNGXTboFMZyubBaBwIh0wi
erHnVkhqeGuwlmlZHtW6vogjsqZMHK+bFEq3JH6x9v7/eMX3iOhRnJELN/zKcVZE
re49pHrkHtBEwAyhL3uYBdmG4HWdP2FTJ8qEPV97fuTm4ez+BFfqy3SaCd2wjgFG
5sssd8MSWSoY/2DIDJYyOJwaM+ogG8+4HjcnFy8eYG4cPAxcVFDT9o3SN/xHOMNH
rjJ5CVtWZI+XSAWupICLCe8ObKjmMGIgbbM9M6V5DdzUCuyUXBbT59sMABXnyBuQ
OxRLMdbkXz+wgfWRkhQLTj6TC8G0znZoCin1S8+vc6aM42qZA3RMj7wU5dRrgmX6
ln8nBwjibrsoXpdukCeGmgIgpuQqtUaBfbKZh2sfh0v34ZuYHuNd7iJVDP5BJ47R
COyH7QgKijBAxgjl+GHxbLG+lqbMgJKL4kqOVEMsuX2xZ08RYt+1Cpqlq9QpPdj3
UPCYnmB2H+jEhPxBZLsH7sjXbQQCAiUqtE++2BMRDgczR7dsdmeduY+0X7toK+0A
QOowjjbhXohOLpAbmYKj
=VheK
-END PGP SIGNATURE-

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/20190219150318.GE10973%40konk.org.
For more options, visit https://groups.google.com/d/optout.


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 
> received from Daphne*:
> 2019-02-18 21:07:54,543 ERRORError trying to receive messages: Error 
> running script (call to f_3640886a0c8901ca9188f5f7a5f7a346145b9c5f): 
> @user_script:3: @user_script: 3: -MISCONF Redis is configured to save RDB 
> snapshots, but is currently not able to persist on disk. Commands that may 
> modify the data set are disabled. Please check Redis logs for details about 
> the error.
>
> So I check *redis log*:
> [1418] 18 Feb 16:09:27.071 * 1 changes in 900 seconds. Saving...
> [1418] 18 Feb 16:09:27.072 * Background saving started by pid 2834
> [2834] 18 Feb 16:09:27.073 # Failed opening .rdb for saving: Permission 
> denied
> [1418] 18 Feb 16:09:27.172 # Background saving error
>
> I searched ways to solve the problem and set the permission of .rdb to 
> 777. But still has this error in redis log.
>
> I also find I cannot shutdown and restart redis. 
>
> When I type redis-server in the command line, the log info:
> [2892] 18 Feb 16:14:32.457 # Warning: no config file specified, using the 
> default config. In order to specify a config file use redis-server 
> /path/to/redis.conf
> [2892] 18 Feb 16:14:32.459 # Unable to set the max number of files limit 
> to 10032 (Operation not permitted), setting the max clients configuration 
> to 3984.
> [2892] 18 Feb 16:14:32.459 # Creating Server TCP listening socket *:6379: 
> bind: Address already in use
>
> *These are the redis processes running:*
> redis-ser  1418redis4u  IPv6  14515  0t0  TCP *:6379 (LISTEN)
> redis-ser  1418redis5u  IPv4  14516  0t0  TCP *:6379 (LISTEN)
> redis-ser  1418redis6u  IPv6 203617  0t0  TCP 
> localhost:6379->localhost:34108 (ESTABLISHED)
> redis-ser  1418redis7u  IPv6 202944  0t0  TCP 
> localhost:6379->localhost:34104 (ESTABLISHED)
>
> On Monday, February 18, 2019 at 4:14:44 PM UTC-5, flora.xia...@gmail.com 
> wrote:
>>
>> Hi,
>>
>> The real-time discussion function (supported by Daphne) on my website is 
>> not working (Other non-real-time functions are good). The console echos: 
>> "WebSocket connection to 'ws://xxxforum/room_xxx/' failed: Error during 
>> WebSocket handshake: Unexpected response code: 200". I've went through the 
>> blog posts and the documentation but couldn't find a solution. Can anyone 
>> help?
>>
>> I am attaching information that I think is needed. If you need any other 
>> information please let me know.
>>
>> *The non-real-time part is supported by uwsgi* (I know it can be 
>> supported by Daphne too. But since the real-time part is not working I 
>> decide to use uwsgi): 
>> uwsgi --socket mysite.sock --module mysite.wsgi --chmod-socket=666 
>> --processes=6
>>
>> *daphne*:
>> daphne mysite.asgi:channel_layer --port 8000 --bind 0.0.0.0 -v2 &
>> python manage.py runworker -v2 &
>>
>> *nginx configuration:*
>> upstream websocket { server 0.0.0.0:8000; } server { listen 80; 
>> server_name mysite.com; charset utf-8; client_max_body_size 20M; 
>> location /static { alias /path/to/mysite/static; } location / { include 
>> /etc/nginx/uwsgi_params;
>> uwsgi_pass unix:///path/to/mysite/mysite.sock; } location /ws { 
>> proxy_pass http://websocket; proxy_http_version 1.1; proxy_set_header 
>> Upgrade $http_upgrade;
>> proxy_set_header Connection "upgrade";
>> proxy_redirect off;
>> proxy_set_header   Host $host;
>> proxy_set_header   X-Real-IP $remote_addr;
>> proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
>> proxy_set_header   X-Forwarded-Host $server_name;
>> }
>> }
>>
>> One thing that I don't understand is that if I try to use Daphne to 
>> support both real-time and non-real-time communication by deleting the 
>> uwsgi block "location / {}" and renaming "location /ws {}" to "location / 
>> {}" the nginx service cannot be restarted. Does it suggest any bug?
>>
>> *first few lines in .js related to the discussion function:*
>> $(function() {
>> var ws_scheme = window.location.protocol == "https:" ? "wss" : "ws"; var 
>> chatsock = new ReconnectingWebSocket(ws_scheme + '://' + 
>> window.location.host + window.location.pathname);
>> ..
>>
>>

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3d5da9eb-ce85-4924-bd46-e28f4ed8ede0%40googlegroups.com.
For more 

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/2degrees/django-wsgi, which does the trick nicely (at
least it appears to for what I need, though I have only tested locally).
Unfortunately, the last commit was 3-4 years ago, and it doesn't support
Django 1.10+ (is_authenticated() vs is_authenticated). I have submitted a
PR and am currently using a fork but the project appears completely dead.

What are other people using, if anything?

Cheers,
Anton
-- 
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc
This will help you for 99.9% of your problems ...

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKywjPrsXNN1ve8PFYr9M%2BpbTHqA4T2xuwPAm%3DmJR13trp2meQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/96d7e44a-deec-4705-8723-d394491693e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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=latin,latin-ext; rel
="stylesheet" type="text/css">


* <--- Here   
  *


{% block content %}
{% endblock %}



-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e32e897a-3efb-4e11-a36d-49abb2437ab0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 
> error.
> Because i have the same url 
> path('partenaire/', views.OffrePListView.as_view(), name='offreListP'),
> path('partenaire/', views.BaseViewP.as_view(), name='showP'),
>
> now i have this 
> path('partenaire/', views.OffrePListView.as_view(), name='offreListP'),
> path('partenaire/show', views.BaseViewP.as_view(), name='showP'),
>
> I want to show many things in one template by using many "contexts".
>
> thanks 
>

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/fe10dc32-4e65-47da-87e9-b3162fe7e1b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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=web=j=https://stackoverflow.com/questions/12187751/django-pass-multiple-models-to-one-template=2ahUKEwimi5aqosbgAhUJtRoKHaiCCYYQjjgwAHoECAcQAQ=AOvVaw0pFQWtYwtjrd03LHLWZ8rz

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6093e9a1-f692-49a4-b75a-08cea08f5313%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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, 'index.html',{'feedtext':feedtext})


and then in your html file where you want to show paginated records

{% for feedtext in feedtext%}

 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@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALr9hQ02EKRB%3DUjPfgjX1Q1%2BG_QxxBovM7Xv_J9Y-Q%3DiwMLo_A%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


 --
 Thank you
 Siddharth Tamang
 AWS Certified Solutions Architect - Associate

 --
 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@googlegroups.com.
 Visit this group at https://groups.google.com/group/django-users.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CADBOudsyrwDg%3DzcG3SgFMVnosOUtym%2BeR3d7UPXEa9GnRz7Opw%40mail.gmail.com
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>> --
>>> 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@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CALr9hQ1CRSweCoycg0AfyiwG9LFb%3DZ2NL7oW7BMPuBg8qk%2B2GA%40mail.gmail.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>> Thank you
>> Siddharth Tamang
>> AWS Certified Solutions Architect - Associate
>>
>> --
>> 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@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CADBOudtmJpskP-K_5%3D24BOXExeNq0%3DreM4nQZbWLaVrJVo0k8Q%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALr9hQ2%2Brp-ih4YCS34PYw3nxFwvvT-EG0DqAdbJ4taLunDHYQ%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Thank you
Siddharth Tamang
AWS Certified Solutions Architect - Associate

-- 
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@googlegroups.com.
Visit this group at 

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 this issue.

I am extremely sorry about this.

On Tue, Feb 19, 2019 at 1:38 PM Godson Rapture  wrote:

> Can you upload your code on github let me check where your problem is?
>
> On Tue, Feb 19, 2019, 6:43 AM Siddharth Tamang <
> tamangsiddhart...@gmail.com> 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 working towards developing a web app where 10
>>> posts appear at a time with a "Load More" option given at last which when
>>> clicked shows the next 10 posts. I am not able to find what is going wrong
>>> with the code.
>>>
>>> Also, it is not showing the character counter for the textbox, so kindly
>>> help me with that as well.
>>>
>>> I am sending the screenshot of the code, pagination.py file.
>>>
>>> Thank You in advance
>>>
>>> --
>>> 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@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CALr9hQ02EKRB%3DUjPfgjX1Q1%2BG_QxxBovM7Xv_J9Y-Q%3DiwMLo_A%40mail.gmail.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>> Thank you
>> Siddharth Tamang
>> AWS Certified Solutions Architect - Associate
>>
>> --
>> 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@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CADBOudsyrwDg%3DzcG3SgFMVnosOUtym%2BeR3d7UPXEa9GnRz7Opw%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAEUEpOTUP_-rdoY8p4%2BfT4%2BTEmCLoSFyLQ1L%3DsdhfPkeHtY3rw%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALr9hQ2Wvq0woYMTtze_erq65trSxVi-76FXR0HvmHVoCPNZxw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 working towards developing a web app where 10
>> posts appear at a time with a "Load More" option given at last which when
>> clicked shows the next 10 posts. I am not able to find what is going wrong
>> with the code.
>>
>> Also, it is not showing the character counter for the textbox, so kindly
>> help me with that as well.
>>
>> I am sending the screenshot of the code, pagination.py file.
>>
>> Thank You in advance
>>
>> --
>> 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@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CALr9hQ02EKRB%3DUjPfgjX1Q1%2BG_QxxBovM7Xv_J9Y-Q%3DiwMLo_A%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> Thank you
> Siddharth Tamang
> AWS Certified Solutions Architect - Associate
>
> --
> 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@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADBOudsyrwDg%3DzcG3SgFMVnosOUtym%2BeR3d7UPXEa9GnRz7Opw%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEUEpOTUP_-rdoY8p4%2BfT4%2BTEmCLoSFyLQ1L%3DsdhfPkeHtY3rw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.