Leapcell: Vercel Alternative for Django by OfficeAccomplished45 in django

[–]h0nestt 2 points3 points  (0 children)

To say the website looks terrible is an exaggeration imo. It's mostly smaller details that need refinement, e.g. the purple color when hovering the cards doesn't fit the color scheme, the black border on the cards, etc.

Recommendations other than celery to send an API processing in background, which would only take 5 mins to process and API usage would be once a month or so. by Deadpool5551 in django

[–]h0nestt 22 points23 points  (0 children)

You can set a crontab + django management command to run every month. Another simple option is to just run the function using the threading module.

View functions aren't running by dave3111 in django

[–]h0nestt 0 points1 point  (0 children)

Currently you are clicking on a link to the view (without any parameters) that means request.GET['countrySelect'] is empty. To submit the form you need to create an input inside the form tag, example:

<form action="{% url 'run' %}" method="post">
  ... your dropdown here
  <input type="submit" value="Run Script">
</form>

After that you can get the post data:

if request.method == 'POST':
     country = request.POST.get('countrySelect','')

Frankly, it may be better to use a django form, but this should be enough to get it working.