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 Notes(mode
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
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
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 django-u
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 stop
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 i
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 emai
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()
serializer=UserSerializer(users,
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:
C:\Users\Administrator\AppData
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 Image
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
FormStep1,FormStep2,FormStep3
|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 t
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 email
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 ManyTo
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 clarif
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 jabber
uired-decorator
>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 thi
te tokens, and where to store them.
Perhaps 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 neede
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 servi
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
> and
)] 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
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)
clas
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
23 matches
Mail list logo