Please help I want to list down all the users with the sharewith from the frontend in backend I used Many to Many field and also my data is not getting into database

2020-07-16 Thread mick
views.py def notesadd(request): form = NoteForm(request.POST or None) if form.is_valid(): form.save() form=NoteForm() context = { 'form': form } print('submitted') return render(request, 'notes.html', context) models.py class

note sharing

2020-07-10 Thread mick
Hello guys Please anyone help me out I am not able to figure out the internal sharing with selected? Django website where users can privately create and share notes. All users will have an account and they will be able to signup then login to their account. Once logged in they will be able to

gdal installed still

2020-05-12 Thread mick
django.core.exceptions.ImproperlyConfigured: Could not find the GDAL library (tried "gdal204", "gdal203", "gdal202", "gdal201", "gdal20"). Is GDAL installed? If it is, try setting GDAL_LIBRARY_PATH in your setting s. -- You received this message because you are subscribed to the Google Groups

Password Reset Template customization

2020-05-11 Thread mick
I am not able to customise the default django rest auth password reset template.Can anyone please help -- 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

Password Reset Template customization

2020-04-10 Thread mick
I am trying to override the default template of the password reset but I am getting in email the tags instead of proper formatting of the HTML page Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Django Mails

2020-03-23 Thread mick
I want the admin and the user themselves both to verify the mail on the user registration.And then only the user is being validated. -- 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

Django mail

2020-03-22 Thread mick
I am using django rest auth I want to fire a mail to the user if the user hasn't verified in one day after sign up automatically. How to do ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Django Searchfilter not functioning I don't understand why

2020-03-09 Thread mick
views.py class UserListView(generics.ListAPIView): queryset = User.objects.all() serializer_class = UserSerializer filter_backends = [filters.SearchFilter,OrderingFilter,] search_fields = ['first_name'] def get(self,request): users=User.objects.all()

Object of type date is not JSON serializable

2020-02-20 Thread mick
TypeError at /addForm4 Object of type date is not JSON serializable Request Method: POST Request URL: http://127.0.0.1:8000/addForm4 Django Version: 3.0.1 Exception Type: TypeError Exception Value: Object of type date is not JSON serializable Exception Location:

I am not able to render my file fields in the Database so not able to upload image

2020-02-20 Thread mick
forms.py class FormStep8(forms.Form): portraitphoto=forms.ImageField(label='Portrait photos of yourself') high_resolution=forms.ImageField(label='3 High Resolution pictures') company_logo=forms.ImageField(label='Company Logo') product_images=forms.ImageField(label='Product

I am filling up the form but my filled out items are not rendering into database and also the session is not working

2020-02-19 Thread mick
views.py from django.views.generic import FormView, TemplateView from django.shortcuts import render,redirect from .models import modelstep1,modelstep2,modelstep3,modelstep4,modelstep5,modelstep6,modelstep7,modelstep8,modelstep9,modelstep10 from .forms import

django

2020-02-07 Thread mick
|as_crispy_field got passed an invalid or inexistent field -- 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

Django

2020-01-30 Thread mick
How to make custom url in the Django,I want to extract title from the HTML template and then get it displayed in url -- 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

Re: ManyToManyField and get_or_create

2013-05-09 Thread Mick T.
I have the same problem, looks like it's a bug: https://code.djangoproject.com/ticket/18896 On Friday, 31 August 2012 18:55:39 UTC-4, Matt Long wrote: > > Bump? > > Almost exactly 4 years later, I've ran into this exact same issue in > Django 1.4. Attempting to use get_or_create through a

Re: Serving static/dynamic files under same suburl

2011-06-27 Thread Mick
not foo.js will be served as a static file by nginx and the bar.js request will be passed to django where you can use a template to dynamically serve it. Mick On Monday, June 27, 2011 at 8:23 AM, Jani Tiainen wrote: > Apparently I didn't made myself clear enough. > > So let me clarify: &g

Re: Chat

2011-06-17 Thread Mick
If you are using XMPP (which I do recommend) you'll want to check out the JS library Strophe (http://strophe.im/) which handles XMPP over HTTP. You will still need a server side BOSH endpoint, either a connection manager that allows you to connect to existing xmpp servers, like gtalk or

Re: @login_required & Redirect...best practice?

2011-05-28 Thread Mick
t;From the login page you will want to set "next" param in post form used for >login (or use the built in form in the auth module) Mick -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: oAuth 2.0

2011-03-05 Thread Mick
haps use the uuid module built into python(http://docs.python.org/library/uuid.html), or some other way of creating unique strings. some people (twitter) like to include the account id in the token, which certainly helps debug at times, but isnt at all needed. Mick -- You received this mess

Re: oAuth 2.0

2011-03-03 Thread Mick
First are you trying to preform actions on the user's behalf on a thrid party site, or are you trying to authorize third parties to take an action on behalf of a user of your site? (are you a Client or a Server in this case?) if you are a Client you need to request a request_token for the

Re: oAuth 2.0

2011-03-02 Thread Mick
In the README for python-oauth2 (https://github.com/simplegeo/python-oauth2) there is a good example in the "Logging into Django w/ Twitter" section. _Mick On Wednesday, March 2, 2011 at 2:36 PM, Олег Корсак wrote: > hello. Is there any tutorial/example about oAuth 2.0 built into Django >

Re: PIL on 10.6 = PAIN

2010-08-31 Thread Trent Mick
)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import _imaging }}} Trent -- Trent Mick -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: v1.2 message framework - messages created outside of the request cycle

2010-07-08 Thread Mick
I've encountered same issue. My solution is simple model and middleware: class OfflineNotification(models.Model): user = models.ForeignKey(User) message = models.TextField() level = models.PositiveSmallIntegerField(default=20) created = models.DateTimeField(auto_now_add=True)

File replacer mix-in

2010-05-10 Thread Mick
Hey. I needed a fix to make some (but not all) models in an existing app delete the previous content of a FileField after update. I figured out a workaround, but should I be wary of anything with this implementation, or is there a better way to do it? Thanks. -Mick. from