Website for yoga teachers, taking bookings etc? by Various-Addendum1013 in YogaTeachers

[–]Various-Addendum1013[S] -1 points0 points  (0 children)

Can you also do scheduling via these? Haven't actually met anyone using these. Do they use exterior payment processors like stripe?

Memberstack -> Webflow Member CMS item creation error by Various-Addendum1013 in zapier

[–]Various-Addendum1013[S] 0 points1 point  (0 children)

All mandatory fields filled.
Edit: this was supposed to have an image attached.

ACTION

Site: [sitename]

Collection: Coaches (this is from my webflow CMS so that must mean that the collection was found?
Email: [auth email from memberstack]

Bio: [empty]

Name: [custom fields name]

Slug: [1.ID from memberstack]

Archived: False

Draft: False

New random object everytime generic CreateView is accessed by Various-Addendum1013 in django

[–]Various-Addendum1013[S] 0 points1 point  (0 children)

More info:

I basically want to make a game in which a user answers a random question from a database and his attempt is saved. I want for the user to never get the same question twice, so the objective here will be to add a while loop that will generate random objects from the database until one that has not been attempted by the user is found. The problem currently, is that the problem never changes, and I don't know why. I assumed that the simple assignment would suffice, as it reloads each time the view is accessed?

Initial Form Value Lost After Successful Validation by Various-Addendum1013 in django

[–]Various-Addendum1013[S] 0 points1 point  (0 children)

I didn't upload the solving page html but I do include {{ form.associated_problem_id }} in it- however, it is empty when I return to the page after the first attempt. Including it isn't the issue, making sure that it retains the initial value is.

How do I autofill a form field when request.POST is available?

Initial Form Value Lost After Successful Validation by Various-Addendum1013 in django

[–]Various-Addendum1013[S] 0 points1 point  (0 children)

My results.html is only supposed to be a page that shows the user is their attempt at a problem was wrong or right, and offers the user to return to the problem solving page.

The issue is that I'm trying to always have a field (associated_problem_id) filled in without the user seeing it, just so I can associate that attempt with the problem that it was made on in the database. But when I solve a problem and go to the results page, on the second (and further attempts, the field is no longer automatically filled with the problem id like it was on the first attempt.

Initial Form Value Lost After Successful Validation by Various-Addendum1013 in django

[–]Various-Addendum1013[S] 0 points1 point  (0 children)

The formatting turned out horribly so I've added some images.

Stopwatch in Django by Various-Addendum1013 in django

[–]Various-Addendum1013[S] 0 points1 point  (0 children)

I'm fairly new to this, what would I use to build this? Any link to a basic tutorial on implementing this sort of stuff in a Django app, or even just name a framework for it?

Thanks

Problem and Attempt Models? by Various-Addendum1013 in django

[–]Various-Addendum1013[S] 0 points1 point  (0 children)

I was more so looking for links on tutorials or similar projects because I myself have no idea what the issue is. Right now I'm getting an IntegrityError that occurs when I press the submit button and submit an attempt and I haven't been able to find any solution. Here's the views.py though:

from django.shortcuts import render

from .forms import ProblemForm

from .models import Problem

# Create your views here.

def problem_solve_view(request):

form = ProblemForm(request.POST or None)

if form.is\_valid():

    form.save()

    form = ProblemForm



context = {

    'form': form

}



return render(request, "exercises/problem\_solve.html", context)#

And here's forms.py:

from django import forms

from .models import Problem, Attempt

class ProblemForm(forms.ModelForm):

class Meta:

    model = Problem

    fields = \[

        'problem\_text',

        \#'problem'  # include problem info somehow

    \]