Of course there is :
on the view which responds to your registration form (likely to be where
you call authenticate) - you simply test if the username field has been
set when the registration is posted - and if not set it to be whatever
you want.
Or - in your custom backend you can do the sam
Yes - but that is very different from what you are asking - Facebook
have a two stage form - first set the details - and then set the user
name. Their user name isn't optional - it is always mandatory - it is
just set at stage two.
You can assign any value to any variable you wish - this isn't
Hey Aayush,
Can you past the full error? It's kinda hard to see what's wrong with just
that description.
Aside from that, you can:
- Make sure you have your virtualenv up.
- Check the library is really installed (you can run `pip freeze` to see
which libraries you have installed in the virtualen
Hi,
I want to integrate an existing django web application with Okta identity
provider. I could find a couple of packages:
https://github.com/fangli/django-saml2-auth
https://github.com/MindPointGroup/django-saml2-pro-auth
Have started to use django-saml2-auth. Can we also configure advanced
s
I created a custom PositiveBigIntegerField data type in models.py, which is
a sub class of the BigIntegerField. I registered the model where the
PositiveBigIntegerField is used in the admin site. When I try to add een
item using the admin site, the 'add' button raises an error, telling me
Posit
class Ticket(models.Model):
...
booked_at = models.DateTimeField(default=timezone.now)
bought = models.BooleanField(default=False)
I would like to group tickets by booked day to get list of ticket or
ticket's id for each day. Something like this:
[
{
'day': datetime.datetime(
if you read this page you will get an idea. get the link below
https://stackoverflow.com/questions/20754793/django-module-object-has-no-attribute-bigintegerfield
On Mon, May 7, 2018 at 3:31 PM, 'Berry' via Django users <
django-users@googlegroups.com> wrote:
> I created a custom PositiveBigInteg
I still don't understand what is being repeated or why. You need to specify
that in your settings, and you can add whatever context processors you like.
You don't need to specify it twice, so nothing is being repeated.
--
You received this message because you are subscribed to the Google Groups
Share your polls/url.py it's saying it cant find the url named "vote" in
your polls.
Dylan
On Mon, May 7, 2018 at 10:14 AM, Avitab Ayan Sarmah
wrote:
> Detail.html:
>
> {{ question.question_text }}
>
> {% if error_message %}{{ error_message }}{% endif
> %}
>
>
> {% csrf_token %}
> {% for choic
polls/urls.py:
from django.urls import path
from . import views
app_name = 'polls'
urlpatterns = [
# ex: /polls/
path('', views.index, name='index'),
# ex: /polls/5/
path('/', views.detail, name='detail'),
#ex: /polls/5/results/
path('/results/', views.results, name='results'),
#ex: /polls/5/vot
i got the error thank you. It was a simple error i forgot to put "<" before
vote
On Monday, May 7, 2018 at 10:55:51 PM UTC+5:30, Avitab Ayan Sarmah wrote:
>
> polls/urls.py:
>
> from django.urls import path
>
> from . import views
>
> app_name = 'polls'
> urlpatterns = [
> # ex: /polls/
> path(''
Thanks for the clarification -> although it seems like it should actually
raise a warning or exception to prevent non-deterministic data errors when
people aren't aware.
Oliver
On Tuesday, April 24, 2018 at 8:20:53 PM UTC-7, Simon Charette wrote:
>
> Hello Olivier,
>
> Since JSON objects can on
Thanks for the reply! I accidentally posted this twice. Still seems like it
should raise some sort of warning or exception when you're trying to edit
both an integer key and a string key at the same time, instead of just
allowing for seemingly non-deterministic data loss.
On Sunday, May 6, 2018
Also next time please post exceptions as a text. Images are really hard to
read specially on mobile device.
ma 7. toukokuuta 2018 klo 20.34 Avitab Ayan Sarmah
kirjoitti:
> i got the error thank you. It was a simple error i forgot to put "<"
> before vote
>
> On Monday, May 7, 2018 at 10:55:51 PM
Yes, but that’s because all of the arguments are optional. That way you can do:
@login_required
def my_view(request):
…
@login_required(login_url=“/login/“)
def other_view(request):
…
- Peter of the Norse
> On Apr 30, 2018, at 12:24 AM, Mike Dewhirst wrote:
>
>> On 30/04/2018 3:35 PM
15 matches
Mail list logo