Reading the timeout value for a django cache entry (for testing)

2019-11-11 Thread guettli
We had a bug in our production system. The timeout was set incorrectly.

Now I want to write a test which checks, that the value of the timeout is 
correct.

I look at the docs and don't see a way to **read** the timeout value of a 
particular cache-key:


https://docs.djangoproject.com/en/2.2/topics/cache/


How could I test that the timeout value in my test is correct?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c6b55205-8a3b-40d3-9b59-ddd19a2c14b8%40googlegroups.com.


How t do Login using Gmail, twtter or facebook

2019-11-11 Thread Balaji Shetty
Hi

can anyone give me web resource to login into Application using Gmail
Account.

-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOu3u0X2bFadyzDZHHy1k2CtX7zaH9ogkgEdy-6s-%2Bosdg%40mail.gmail.com.


Re: How t do Login using Gmail, twtter or facebook

2019-11-11 Thread Andréas Kühne
https://simpleisbetterthancomplex.com/tutorial/2016/10/24/how-to-add-social-login-to-django.html

Regards,

Andréas


Den mån 11 nov. 2019 kl 10:27 skrev Balaji Shetty :

> Hi
>
> can anyone give me web resource to login into Application using Gmail
> Account.
>
> --
>
>
> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
> *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
> *Official: bsshe...@sggs.ac.in  *
> *  Mobile: +91-9270696267*
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAECSbOu3u0X2bFadyzDZHHy1k2CtX7zaH9ogkgEdy-6s-%2Bosdg%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK4qSCeFpc9A2dCxTuuaBYmhHqhBdt_s4JG3z4O0jqA-9vfAkg%40mail.gmail.com.


Re: How t do Login using Gmail, twtter or facebook

2019-11-11 Thread Nick Sarbicki
I generally like to implement things like Google auth myself, as it's not
too complex and down the line it often makes things easier (e.g. you can
easily use a single backend for both a web login and an API login).

Google provide plenty of guides on this for their setup e.g:

https://www.youtube.com/watch?v=Oy5F9h5JqEU
https://developers.google.com/identity/sign-in/web

If you do want to just use a package, especially one with a wide range of
support for social auth then I'd recommend AllAuth. Here's the docs for
AllAuth with Google:

https://django-allauth.readthedocs.io/en/latest/providers.html#google


- Nick


On Mon, Nov 11, 2019 at 9:32 AM Andréas Kühne 
wrote:

>
> https://simpleisbetterthancomplex.com/tutorial/2016/10/24/how-to-add-social-login-to-django.html
>
> Regards,
>
> Andréas
>
>
> Den mån 11 nov. 2019 kl 10:27 skrev Balaji Shetty  >:
>
>> Hi
>>
>> can anyone give me web resource to login into Application using Gmail
>> Account.
>>
>> --
>>
>>
>> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
>> *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
>> *Official: bsshe...@sggs.ac.in  *
>> *  Mobile: +91-9270696267*
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAECSbOu3u0X2bFadyzDZHHy1k2CtX7zaH9ogkgEdy-6s-%2Bosdg%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAK4qSCeFpc9A2dCxTuuaBYmhHqhBdt_s4JG3z4O0jqA-9vfAkg%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGuvt91fzNLgNFN6FvvH5MK8kwhdYScH22egXRQHEqCcBeB%2Bfg%40mail.gmail.com.


Re: How t do Login using Gmail, twtter or facebook

2019-11-11 Thread Kasper Laudrup

Hi,

On 10/11/2019 23.01, Balaji Shetty wrote:

Hi

can anyone give me web resource to login into Application using Gmail 
Account.




https://support.google.com/accounts/

If that's not what you're looking for, you probably need to be a bit 
more specific.


Kind regards,

Kasper Laudrup

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3e459651-4654-9c99-a959-0875fac9f117%40stacktrace.dk.


[no subject]

2019-11-11 Thread Paras Jain
how send email in django for password reset

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMtmBS-07d3%3DwFy7C0vQ0ROuCmVzpZhVpSGa%3DuV%2BCBiZTQnoiw%40mail.gmail.com.


Re:

2019-11-11 Thread Kasper Laudrup

Hi

On 11/11/2019 12.18, Paras Jain wrote:

how send email in django for password reset



https://lmgtfy.com/?q=django+email+password+reset&s=g

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/17f54bda-a72a-fd99-a046-00bbbcb1d0dc%40stacktrace.dk.


Re: Error while uplaoding the models data from excel through admin page

2019-11-11 Thread Parth Joshi
Error seems to be in allotment_exam.Examname model. 

The model code which you have pastes is of “Exam”


Regards, 

Parth Joshi



> On 10-Nov-2019, at 11:34 AM, Mohan Goud  wrote:
> 
> 
> 
> I have to import the data into models from excel sheet from admin site and 
> the code is
> 
> models.py
> 
> class Exam(models.Model): Examname = models.CharField(null=False, 
> blank=False, max_length=255)
> class Meta: unique_together = ["Examname"]
> def str(self): return self.Examname
> 
> admin.py
> 
> @admin.register(Exam) class ViewAdmin(ImportExportModelAdmin): exclude = 
> ('id', )
> 
> While importing the data the errors are Line number: 2 - NOT NULL constraint 
> failed: allotment_exam.Examname and Line number: 3 - NOT NULL constraint 
> failed: allotment_exam.Examname
> 
> 
> 
> -- 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAB29Dkm6toxTQiYy2-8BREdv0z%2B2go87eO4o-%2BeUAys6yfN44g%40mail.gmail.com
>  
> .

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/12B52CDD-3CED-4BA9-B385-4CC2D1335873%40gmail.com.


ProfilePhotoStorage library from django.core.files.storage

2019-11-11 Thread Uttam Dwivedi
Hi, 

I am getting following error - 

ImportError: cannot import name 'ProfilePhotoStorage' from 
'django.core.files.storage'



can you please tell me what version of django could be good for this error 
to solver

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/afcc23a8-65b8-415b-813b-40cb22003779%40googlegroups.com.


Hi to all, I want to represent the data in the form of charts which is in the dictionary format how? Please Tell me the solution

2019-11-11 Thread Devendra reddy


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABB0Uf2GpKFPSMALm6rC0MRXkpm-KyEH0jvSxPz8%2BuN2rmek_Q%40mail.gmail.com.


MongoDB Connection Error with Python

2019-11-11 Thread 'Abhishek Sharma' via Django users
class MongoConnect(object):
def __init__(self,HOST,PORT,DB,USERNAME,PASSSWORD):
self.HOST=HOST
self.PORT=PORT
self.USERNAME=USERNAME
self.PASSSWORD=PASSSWORD
self.DB=DB
def getMongoConnetion(self):
client= MongoClient(self.HOST, self.PORT, username=self.USERNAME, 
password=self.PASSSWORD)
return client

def getDBObject(self, DB):
connection = getMongoConnetion()
return connection[DB].authenticate(USERNAME,PASSSWORD)



MONGO_DB = 'techcraft'
instance=MongoConnect('127.0.0.1',27017,'techcraft','craft','dbcl123456')
client=instance.getMongoConnetion()
db=instance.getDBObject('techcraft')
print(db)



Error##

Traceback (most recent call last):
  File "self.py", line 36, in 
db=instance.getDBObject('techcraft')
  File "self.py", line 28, in getDBObject
connection = getMongoConnetion()
NameError: name 'getMongoConnetion' is not defined

-- 

















The information in this
e-mail and any attachments is 
confidential and may be legally privileged. It is
intended solely for the 
addressee or addressee's. If you are not an intended
recipient, please 
delete the message and any attachments and notify the sender
of 
nondelivery. Any use or disclosure of the contents of either is 
unauthorised
and may be unlawful. All liability for viruses is excluded to 
the fullest
extent permitted by law. Any views expressed in this message 
are those of the
individual sender, except where the sender states them, 
with requisite
authority, to be those of the organisation.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/855f8f95-0175-4983-b667-439d7935c39e%40googlegroups.com.


Re: MongoDB Connection Error with Python

2019-11-11 Thread Kasper Laudrup

Hi Abhishek,

On 11/11/2019 15.19, 'Abhishek Sharma' via Django users wrote:


Error##

Traceback (most recent call last):
   File "self.py", line 36, in 
     db=instance.getDBObject('techcraft')
   File "self.py", line 28, in getDBObject
     connection = getMongoConnetion()
NameError: name 'getMongoConnetion' is not defined



In your getDBObject function you need an instance for your 
getMongoConnetion() function, eg. self.getMongoConnetion().


Kind regards,

Kasper Laudrup

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7dc4cbdf-3e03-f289-006d-8bc7c2de33bf%40stacktrace.dk.


https setup

2019-11-11 Thread Manos Zeakis
Hello everyone

I want to setup my django server to serve as https.

I have found (and tried) some information about 
1. Cookies Settings configuration
2. Environmental variable HTTPS
3. A setting that has to do with Proxy SSL Header
4. A need to configure NginX or Gunicorn 

but no solid information that could drive me from the beginning to the end 
of such a procedure. Are you aware of a tutorial or instructions guide to 
help me on this procedure?

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b8030e6a-e5a7-47fd-afcd-bc5a0c0ebc6b%40googlegroups.com.


Re: https setup

2019-11-11 Thread Kasper Laudrup

Hi Manos,

On 11/11/2019 15.30, Manos Zeakis wrote:

Hello everyone

I want to setup my django server to serve as https.

I have found (and tried) some information about
1. Cookies Settings configuration
2. Environmental variable HTTPS
3. A setting that has to do with Proxy SSL Header
4. A need to configure NginX or Gunicorn

but no solid information that could drive me from the beginning to the 
end of such a procedure. Are you aware of a tutorial or instructions 
guide to help me on this procedure?




I believe I used this guide:

https://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html

It's pretty good step-by-step by step guide and has good help with 
troubleshooting.


I think you should focus on getting Django to work with UWSGI and a web 
server proxy first (in this case Nginx) without SSL.


Once you have that working, it is fairly trivial to make the same setup 
work with HTTPS. That is more or less a web server configuration issue.


Hope that helps.

Kind regards,

Kasper Laudrup

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3a685edd-81f4-57a3-8c39-77985d63e0c1%40stacktrace.dk.


Re: https setup

2019-11-11 Thread Peter van der Does
https://simpleisbetterthancomplex.com/tutorial/2016/05/11/how-to-setup-ssl-certificate-on-nginx-for-django-application.html

On 11/11/19 9:30 AM, Manos Zeakis wrote:
> Hello everyone
>
> I want to setup my django server to serve as https.
>
> I have found (and tried) some information about
> 1. Cookies Settings configuration
> 2. Environmental variable HTTPS
> 3. A setting that has to do with Proxy SSL Header
> 4. A need to configure NginX or Gunicorn
>
> but no solid information that could drive me from the beginning to the
> end of such a procedure. Are you aware of a tutorial or instructions
> guide to help me on this procedure?
>
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/b8030e6a-e5a7-47fd-afcd-bc5a0c0ebc6b%40googlegroups.com
> .
-- 
*Peter van der Does
o: ***410-584-2500
m: 732-425-3102
*ONeil Interactive, Inc *
oneilinteractive.com 
**

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3a049448-f6a3-3bd1-753a-9f8aac4c1e37%40oneilinteractive.com.


reg: Django forms and models

2019-11-11 Thread 'Amitesh Sahay' via Django users
Hello Members,
I am creating a simple django forms and integrating it with models. I have 
followed the django docs to perform the task, but I believe that I am doing 
some mistake due to which I am getting 
"ValueError at /blog/contact/". Below is the full error stack:
Environment:


Request Method: GET
Request URL: http://localhost:8000/blog/contact/

Django Version: 2.2.5
Python Version: 3.6.8
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'BLOG']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']



Traceback:

File 
"/root/PycharmProjects/myvenv/lib/python3.6/site-packages/django/core/handlers/exception.py"
 in inner
  34. response = get_response(request)

File 
"/root/PycharmProjects/myvenv/lib/python3.6/site-packages/django/core/handlers/base.py"
 in _get_response
  126. "returned None instead." % (callback.__module__, 
view_name)

Exception Type: ValueError at /blog/contact/
Exception Value: The view BLOG.views.contact didn't return an HttpResponse 
object. It returned None instead.Below are my python files snippet:
models.py-from django.db import models


class Contact(models.Model):
name = models.CharField(max_length=100)
email = models.EmailField(max_length=200)
phone = models.IntegerField()
Comment = models.TextField(blank=False)

def __str__(self):
return self.emailforms.pyfrom django import forms
from .models import Contact


class ContactForm(forms.ModelForm):
name = forms.CharField(label='Your name', max_length=100)
email = forms.EmailField(label='Your Email Address', max_length=200)
phone = forms.IntegerField(label='Your Phone Number', max_value=20)
Comment = forms.TextInput()

class Meta:
model = Contact
fields = ('name', 'email', 'phone', 'Comment')views.pyfrom django.http 
import HttpResponse
from django.shortcuts import render, redirect

from .forms import ContactForm


def contact(request):
if request.method == 'POST':
name_r = request.POST.get('name')
email_r = request.POST.get('email')
phone_r = request.POST.get('phone')
comment_r = request.POST.get('comment')

form = ContactForm(name=name_r, email=email_r, phone=phone_r, 
comment=comment_r)
if form.is_valid():
form.save()
form = ContactForm()
return HttpResponse('Thank you for your enquiry')
return redirect(request, 'contact.html')
else:
form = ContactForm()
return render(request, 'contact.html', {'form': form})Any 
suggestions




Regards,
AS

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1654382225.2288963.1573500974885%40mail.yahoo.com.


Re: reg: Django forms and models

2019-11-11 Thread Kasper Laudrup

Hi Amitesh,

In this view:

On 11/11/2019 20.36, 'Amitesh Sahay' via Django users wrote:


def contact(request):
 if request.method =='POST':
 name_r = request.POST.get('name')
 email_r = request.POST.get('email')
 phone_r = request.POST.get('phone')
 comment_r = request.POST.get('comment')

 form = ContactForm(name=name_r, email=email_r, phone=phone_r, 
comment=comment_r)
 if form.is_valid():
 form.save()
 form = ContactForm()
 return HttpResponse('Thank you for your enquiry')
 return redirect(request, 'contact.html')
 else:
 form = ContactForm()
 return render(request, 'contact.html', {'form': form})



Concider what will happen if request.method is *not* POST?

As a hint, if a Python function doesn't return anything explicitly, it 
will implicitly return None.


Hope that will guide you in the right direction.

I could just solve it for you, but it's better that you figure it out 
yourself if you want to learn.


Kind regards,

Kasper Laudrup

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/43c7a649-b008-d0ef-dd2c-64679c270017%40stacktrace.dk.


Re: Django - How to add a link to a table that will open another page(django app) from an html template and pass a variable with it.

2019-11-11 Thread Patrick Carra
This worked for me but upon more testing I discovered some values such as 
WAVE/123456//IMP 
get changed to WAVE/123456//IMP during the process of passing this 
parameter as a url and django interpreting it.  As a result I get an error: 
Circuitinfotable matching query does not exist.  I'm assuming this is 
because django is interpreting the second / as an escape character?  How do 
I get it to include all /'s in the query so that a correct result will be 
returned.

On Wednesday, September 25, 2019 at 1:27:31 PM UTC-5, Randy Hughes wrote:
>
> views.py
> class *viewLit*(TemplateView): 
>
> def get(self, request, strategy=None):
> circuit_id = self.request.query_params.get('circuitid', None)
>
> urls.py
>
> path('viewlit/', viewlit.as_view(), name='viewlit')
>
>
> search_custom.html
> 
> 
> {{ circuit.circuitid }}
> 
> 
>
>
> ''' this is an example using a query parameter
> the url in urls.py does not need to include this parameter as a slug
>
> the view is able to get the parameter by key name (the same way you get a 
> key from a dict)
> the tag is formatted to create the url ex (127.0.0.1/foo/) query 
> parameters are everything following the ?
> so as you can do something like this 
> 127.0.0.1/foo/?field1=a&field2=b&field3=c
> I am not sure if this is the better than your solution but this should 
> work. As well you can add a redirect in viewlit to a different page if
> circuit_id does not exist.
> '''
>
>
>
> On Wed, Sep 25, 2019 at 1:09 PM Patrick Carra  > wrote:
>
>> Hello I have an app that displays some database information in a table.  
>> Inside of the html template I am making an edit link that I want to open 
>> another app(page viewLit) while passing a value to it's view.  I have added 
>> my code below.  My question is I am unsure of how to make this links url 
>> and pass the object data located inside circuit.circuitid along with it.  I 
>> haven't been able to find the right way to code this yet and this is just 
>> how I thought that this should be done. If anyone has a better idea I am 
>> open to suggestions.
>>
>> search_custom.html(code for link)
>> {% for circuit in filter.qs %}
>> 
>> 
>> View
>> 
>> {{ circuit.circuitid }}
>> 
>> {% endfor %}
>>
>> myapp/myapp/urls.py
>> urlpatterns = [
>> path('viewLit/', include('viewLit.urls')),
>> ]
>>
>> myapp/viewLit/urls.py
>> urlpatterns=[
>> path('viewLit/circuitid.id', views.viewLit, name='viewLit'),
>> ]
>>
>> views.py
>> def viewLit(request, circuitid):
>> #display records fields here
>> return HttpResponse("You are at the viewLit page!")
>>
>> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/d81bf60a-260c-44c1-9c12-e852b51432a9%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e8ecbed1-e827-4776-a87c-29b31c81ab9e%40googlegroups.com.


Multi stage form

2019-11-11 Thread Suraj Thapa FC
After creating a multi-stage form
How do I restrict the access to the particular part of the form to a
particular user.
Suppose I have 3part of the form... User1 can access part1 of the form
after that user2 can access the part2 of the form and so on...
.
.
.
Admin cna View and access all part of the multi stage form

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPjsHcFg-rkPBfBp80p1c4Zr43QBcrBEAem-5edLZ2qTF9fj7Q%40mail.gmail.com.


Re: https setup

2019-11-11 Thread Manos Zeakis
Thank you!

On Monday, 11 November 2019 19:54:36 UTC+2, Peter van der Does wrote:
>
>
> https://simpleisbetterthancomplex.com/tutorial/2016/05/11/how-to-setup-ssl-certificate-on-nginx-for-django-application.html
> On 11/11/19 9:30 AM, Manos Zeakis wrote:
>
> Hello everyone
>
> I want to setup my django server to serve as https.
>
> I have found (and tried) some information about 
> 1. Cookies Settings configuration
> 2. Environmental variable HTTPS
> 3. A setting that has to do with Proxy SSL Header
> 4. A need to configure NginX or Gunicorn 
>
> but no solid information that could drive me from the beginning to the end 
> of such a procedure. Are you aware of a tutorial or instructions guide to 
> help me on this procedure?
>
> 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...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/b8030e6a-e5a7-47fd-afcd-bc5a0c0ebc6b%40googlegroups.com
>  
> 
> .
>
> -- 
>
> *Peter van der Does o: **410-584-2500*
> * m: 732-425-3102 ONeil Interactive, Inc  oneilinteractive.com 
>  *
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7e12e77a-6970-48c2-8c75-cecefdde2cc1%40googlegroups.com.


Re: https setup

2019-11-11 Thread Manos Zeakis
Thank you very much!

On Monday, 11 November 2019 19:37:06 UTC+2, Kasper Laudrup wrote:
>
> Hi Manos, 
>
> On 11/11/2019 15.30, Manos Zeakis wrote: 
> > Hello everyone 
> > 
> > I want to setup my django server to serve as https. 
> > 
> > I have found (and tried) some information about 
> > 1. Cookies Settings configuration 
> > 2. Environmental variable HTTPS 
> > 3. A setting that has to do with Proxy SSL Header 
> > 4. A need to configure NginX or Gunicorn 
> > 
> > but no solid information that could drive me from the beginning to the 
> > end of such a procedure. Are you aware of a tutorial or instructions 
> > guide to help me on this procedure? 
> > 
>
> I believe I used this guide: 
>
> https://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html 
>
> It's pretty good step-by-step by step guide and has good help with 
> troubleshooting. 
>
> I think you should focus on getting Django to work with UWSGI and a web 
> server proxy first (in this case Nginx) without SSL. 
>
> Once you have that working, it is fairly trivial to make the same setup 
> work with HTTPS. That is more or less a web server configuration issue. 
>
> Hope that helps. 
>
> Kind regards, 
>
> Kasper Laudrup 
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/57d74726-fa12-44b8-8c6c-6d802ff993ff%40googlegroups.com.


Re: ProfilePhotoStorage library from django.core.files.storage

2019-11-11 Thread Uttam Dwivedi
solved !!!
thank you

On Mon, Nov 11, 2019 at 10:47 PM Uttam Dwivedi 
wrote:

> Hi,
>
> I am getting following error -
>
> ImportError: cannot import name 'ProfilePhotoStorage' from
> 'django.core.files.storage'
>
>
>
> can you please tell me what version of django could be good for this error
> to solver
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/afcc23a8-65b8-415b-813b-40cb22003779%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABEv8W%3DXuZa%3D2jA9-NDpr4_ftzVXGKnHspnvuOgignq1iPaC_g%40mail.gmail.com.