Django Version update for my project

2018-03-30 Thread Haroon Ahmed
Hi,

I want to update my Django version from Django 1.9.8 to Django 2.0.3 
because it is mentioned in the Django 1.9.8 official document that this 
version has security issues. 

https://docs.djangoproject.com/en/1.9/internals/release-process/#backwards-compatibility-policy
'This document is for an insecure version of Django that is no longer 
supported. Please upgrade to a newer release!'

This is my first time to upgrade Django version for my project.
I simply upgraded Django in my virtual environment to Django 2.0.3, now i 
am facing errors about url resolver etc. At the moment i haven't changed my 
code.

I have some questions in my mind:

   - Do we have to upgrade Django whenever the new Django version is 
   released?
   - At the moment if i am able to upgrade my Project with Django 2 and 
   after some time this version also  become insecure then i have to repeat 
   the Django version updates again?
   - Is there any blog written or any helpful materiel for me  that How to 
   upgrade Django Version so that my project comes in working state?

Any kind of help will be appreciated, Thanks 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/72b7acd8-f8a5-4c50-87b5-fb9b6e4c9e63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Updating Django for my web based application

2018-03-30 Thread Haroon Ahmed
Hi, 

Currently my application is developed with Django 1.9.8 and I want to 
upgrade it to 2.0.3 because 
Django 1.9.8 is an insecure version of django as mention on it official 
documentation.

https://docs.djangoproject.com/en/1.9/internals/release-process/#backwards-compatibility-policy

This document is for an insecure version of Django that is no longer 
supported. Please upgrade to a newer release!


Its my first time to update Django Version for my application,
I have updated the Dango 1.9.8 to Django 2.0.3 in my virtual environment.
I am using Python 3.4.4

I haven't changes any thing in the code yet and facing some error

\virtualEnv\DjangoUp\lib\site-packages\rest_framework\routers.py", line 23, 
in 
from django.core.urlresolvers import NoReverseMatch
ImportError: No module named 'django.core.urlresolvers'

Some question that are coming into my mind:

   - Do i have to update my application according to new Django release 
   every time when new Django version releases?
   - Is there any article or blog written that can help me to upgrade 
   Django version from Django 1.9.8 to Django 2.0.3?
   - What people follow, dose most of the developers upgrade there web 
   application according to new Django version release?

Any kind of help will be appreciated, Thanks 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/1162960f-46e4-4c24-9e36-df1d7edbb2eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Updating Django for my web based application

2018-03-31 Thread Haroon Ahmed
Hi,

Thanks for the information!

Should i upgrade to Django 2 for my project? As Django 2 is not Long Time
Supported.
Django 1.11 is the latest release that is Long Time Supported yet!

Should I go for Django 1.11 at the moment rather then Django 2.0? What
will  be your suggestion for me?

What is being followed in the industry, How to decide which Django should
be chosen to upgrade the application?


Thanks in advance!



On Fri, Mar 30, 2018, 5:12 PM Jani Tiainen  wrote:

> Hi,
>
> Standard procedure to update Django is to upgrade gradually all versions
> from source version to target.
>
> There is no single document to describe changes needed between versions
> that are apart more than one release.
>
> Only changelog you can find is at every release which contains changes
> from previous release.
>
> You can try to combine required changes to directly upgrade.
>
> pe 30. maaliskuuta 2018 klo 14.07 Haroon Ahmed 
> kirjoitti:
>
>> Hi,
>>
>> Currently my application is developed with Django 1.9.8 and I want to
>> upgrade it to 2.0.3 because
>> Django 1.9.8 is an insecure version of django as mention on it official
>> documentation.
>>
>>
>> https://docs.djangoproject.com/en/1.9/internals/release-process/#backwards-compatibility-policy
>>
>> This document is for an insecure version of Django that is no longer
>> supported. Please upgrade to a newer release!
>>
>>
>> Its my first time to update Django Version for my application,
>> I have updated the Dango 1.9.8 to Django 2.0.3 in my virtual environment.
>> I am using Python 3.4.4
>>
>> I haven't changes any thing in the code yet and facing some error
>>
>> \virtualEnv\DjangoUp\lib\site-packages\rest_framework\routers.py", line
>> 23, in 
>> from django.core.urlresolvers import NoReverseMatch
>> ImportError: No module named 'django.core.urlresolvers'
>>
>> Some question that are coming into my mind:
>>
>>- Do i have to update my application according to new Django release
>>every time when new Django version releases?
>>- Is there any article or blog written that can help me to upgrade
>>Django version from Django 1.9.8 to Django 2.0.3?
>>- What people follow, dose most of the developers upgrade there web
>>application according to new Django version release?
>>
>> Any kind of help will be appreciated, Thanks 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/1162960f-46e4-4c24-9e36-df1d7edbb2eb%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/1162960f-46e4-4c24-9e36-df1d7edbb2eb%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> 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/CAHn91oeRFX6N7cvUTL9jwLGQJOTV8dLxCUWKdicCiYbbqCUbtA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHn91oeRFX6N7cvUTL9jwLGQJOTV8dLxCUWKdicCiYbbqCUbtA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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/CAAAomxk-iJ0c9uag%2B16r64Faf_HMh_kre64gSv379GNnQ3%3DcOg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Updating Django for my web based application

2018-03-31 Thread Haroon Ahmed
Hi,

I am using python 3.4 already!
Yes my project is big, it is almost completed now but the requirement is to
upgrade it to latest suitable release and that release should  not be
insecure.

when i started this project, it was not written on Django 1.9.8 official
document that its an insecure version

Now i am thinking that Django 2 is not LTS so what is the guaranty that it
will be a secure Django Version!


On Sat, Mar 31, 2018, 2:34 PM Jani Tiainen  wrote:

> Hi,
>
> In most cases, if possible I would upgrade latest release. Main issue with
> 1.11 to 2.0 upgrade is Python 2 support. 1.11 is the last version to
> support Python 2.7 and starting from Django 2.0 Python 3 is required.
>
> Of course, if your project is a big that takes long time to upgrade,
> sticking with LTS isn't bad choice.
>
> On Sat, Mar 31, 2018 at 11:45 AM, Haroon Ahmed 
> wrote:
>
>> Hi,
>>
>> Thanks for the information!
>>
>> Should i upgrade to Django 2 for my project? As Django 2 is not Long Time
>> Supported.
>> Django 1.11 is the latest release that is Long Time Supported yet!
>>
>> Should I go for Django 1.11 at the moment rather then Django 2.0? What
>> will  be your suggestion for me?
>>
>> What is being followed in the industry, How to decide which Django should
>> be chosen to upgrade the application?
>>
>>
>> Thanks in advance!
>>
>>
>>
>> On Fri, Mar 30, 2018, 5:12 PM Jani Tiainen  wrote:
>>
>>> Hi,
>>>
>>> Standard procedure to update Django is to upgrade gradually all versions
>>> from source version to target.
>>>
>>> There is no single document to describe changes needed between versions
>>> that are apart more than one release.
>>>
>>> Only changelog you can find is at every release which contains changes
>>> from previous release.
>>>
>>> You can try to combine required changes to directly upgrade.
>>>
>>> pe 30. maaliskuuta 2018 klo 14.07 Haroon Ahmed 
>>> kirjoitti:
>>>
>>>> Hi,
>>>>
>>>> Currently my application is developed with Django 1.9.8 and I want to
>>>> upgrade it to 2.0.3 because
>>>> Django 1.9.8 is an insecure version of django as mention on it official
>>>> documentation.
>>>>
>>>>
>>>> https://docs.djangoproject.com/en/1.9/internals/release-process/#backwards-compatibility-policy
>>>>
>>>> This document is for an insecure version of Django that is no longer
>>>> supported. Please upgrade to a newer release!
>>>>
>>>>
>>>> Its my first time to update Django Version for my application,
>>>> I have updated the Dango 1.9.8 to Django 2.0.3 in my virtual
>>>> environment.
>>>> I am using Python 3.4.4
>>>>
>>>> I haven't changes any thing in the code yet and facing some error
>>>>
>>>> \virtualEnv\DjangoUp\lib\site-packages\rest_framework\routers.py", line
>>>> 23, in 
>>>> from django.core.urlresolvers import NoReverseMatch
>>>> ImportError: No module named 'django.core.urlresolvers'
>>>>
>>>> Some question that are coming into my mind:
>>>>
>>>>- Do i have to update my application according to new Django
>>>>release every time when new Django version releases?
>>>>- Is there any article or blog written that can help me to upgrade
>>>>Django version from Django 1.9.8 to Django 2.0.3?
>>>>- What people follow, dose most of the developers upgrade there web
>>>>application according to new Django version release?
>>>>
>>>> Any kind of help will be appreciated, Thanks 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/1162960f-46e4-4c24-9e36-df1d7edbb2eb%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/1162960f-46e4-4c24-9e36-df1d7edbb2eb%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
&

OAuth2 Token Generation in Django 1.11

2018-04-09 Thread Haroon Ahmed
Hi,

I am using Django 1.9.8 and implemented OAuth2, but when i upgrade 
django to 1.11 my to OAuth2 Token generation gets errors,
this is my code to generate token:

*   data = [*
*  ('grant_type', 'password'),*
*  ('username', userName),*
*  ('password', password),*
*]*
*   accessTokenObj = requests.post(coreUrl, data=data, verify=False, 
auth=(DjangoApp_ClientId, DjangoApp_ClientSecret))*

Any kind of hep will be appreciated in advance.

Regards,
Haroon Ahmed

-- 
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/0964f3b5-4233-471e-960d-4c5ea36bef5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django and Live Chat

2018-04-09 Thread Haroon Ahmed
Hi,

I am using Django 1.9.8 and Python 3.4.4, will upgrade my django to 
1.11,
I want to create Chat functionality in my project, My requirement is 
that application users can Live chat with Admin users and maintain chat 
history of each user!
Please suggest some packages or solution that i can customize according 
to my requirement!

Any kind of hep will be appreciated in advance.

Regards,
Haroon Ahmed

-- 
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/e0ecc853-c23f-497f-ad4a-49cf3b78fe56%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.