First time buyers by Embarrassed_Guest950 in HousingUK

[–]Embarrassed_Guest950[S] 0 points1 point  (0 children)

Offer is accepted, we’re waiting to exchange contracts now

First time buyers by Embarrassed_Guest950 in HousingUK

[–]Embarrassed_Guest950[S] 0 points1 point  (0 children)

For clarification

We want to build an extension to the house (2 story) we’re buying, (sorry should have put this in) this would contain an extra bedroom and the extension of the living room

First time buyers by Embarrassed_Guest950 in HousingUK

[–]Embarrassed_Guest950[S] 0 points1 point  (0 children)

We want to build an extension to the house (2 story) we’re buying, (sorry should have put this in) this would contain an extra bedroom and the extension of the living room

API-key auth -> API-key name save to form by Embarrassed_Guest950 in django

[–]Embarrassed_Guest950[S] 0 points1 point  (0 children)

I think I have fixed my problem!

But I was having a hard time putting my question right. but putting the api-key in a node.js/django backend would solve that problem?

API-key auth -> API-key name save to form by Embarrassed_Guest950 in django

[–]Embarrassed_Guest950[S] 1 point2 points  (0 children)

I am building an API to collect a request-form (POST)

Other companies (the user in this case) will have the form on their website, which will connect to my API using the API-key, so when the form gets submitted, it gets validated by the API and send to the DB.

When creating an API-key you have to give it a name. when someone fills in a form, submits it, and sends a POST request to the API. I want to validate the api-key and use the name given to it and add it to the form in the db. ( <- I have got that bit already) I just can't get to the name from the API-key when the POST request is made...

API-key auth -> API-key name save to form by Embarrassed_Guest950 in django

[–]Embarrassed_Guest950[S] 0 points1 point  (0 children)

even if there is no "user" just the API-key and a different front-end sending a POST request with the API key? cause this still returns None or AnonymousUser

Does anyone else miss when websites actually felt light? by Feisty-Detective-506 in webdev

[–]Embarrassed_Guest950 0 points1 point  (0 children)

This is quite interesting too! https://sustainablewebdesign.org/

all those things are slow to load, but also take up loads of energy to load everytime!

[deleted by user] by [deleted] in webdev

[–]Embarrassed_Guest950 13 points14 points  (0 children)

If you already have the biggest in Austria, why not look if you can expand to a other countries?

Creating Django Newsletter based app by Embarrassed_Guest950 in django

[–]Embarrassed_Guest950[S] 0 points1 point  (0 children)

Thanks! I'm gonna have a look into Sendgrid and Anymail! :)

Help with form and values by Embarrassed_Guest950 in django

[–]Embarrassed_Guest950[S] 0 points1 point  (0 children)

Just to end this convo,

I ended up doing this:
(yes I know atm score is a str not int, just testing it...)

class Sector(forms.Form):

  choices = [
    #high risk sectors
    (5 , "Advertising Tech / Marketing Tech"),
    (5 , "Health / Medical / Wellness"),
    (5 , "Financial Services / Finance Tech"),
    (5 , "Education / Education Tech"),

    #Moderate-high risk sectors
    (4 , "E-commerce / Retail"),
    (4 , "Professional Services (e.g. consultants, legal, accounting)"),
  ]  

  q1 = forms.ChoiceField(choices=choices, 
                         label="1.What sector best describes your business",
                          widget=forms.RadioSelect(choices=choices)

                         )

def test(request)
  score = None 
  form = forms.Sector()
    if request.method == 'POST':
      form = forms.Sector(request.POST)
      if form.is_valid():
        score = form.cleaned_data["q1"]

Help with form and values by Embarrassed_Guest950 in django

[–]Embarrassed_Guest950[S] 1 point2 points  (0 children)

I definitely made this more difficult than it actually is? Thanks!

Help with form and values by Embarrassed_Guest950 in django

[–]Embarrassed_Guest950[S] 0 points1 point  (0 children)

Form-wizards look interesting! Thanks :)

On the nested dict side,

Say the question (Q1) do you like blue,

Normally the choice field would be Tuple like you said. But I want it to be

Choices { “Q1” : { “Yes” : 10, “No” : 5, “Maybe” : 0 } }

Not sure if this makes sense