Code Monkey home page Code Monkey logo

Comments (9)

typonaut avatar typonaut commented on May 31, 2024 1

I can confirm that everything is now functioning as expected.

from django-classified.

slyapustin avatar slyapustin commented on May 31, 2024

@typonaut Can you please provide more details?
Please take a look to the demo project https://github.com/inoks/django-classified-demo

from django-classified.

typonaut avatar typonaut commented on May 31, 2024

I'd go through it step by step, but the demo site is not currently working:

https://django-classified.herokuapp.com/


Application error

An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail


Let me know when you have a demo site working again and I'll recreate the problem.

Essentially, I created an account and uploaded an image file, but when I did this it created an error in the application and didn't load the image. You can probably see this is a problem as no other demo ads had images.

from django-classified.

slyapustin avatar slyapustin commented on May 31, 2024

@typonaut That should not be related to the image upload.
I have an issue with the free app quota usage on Heroku.
That demo app has received a lot of traffic recently, which is not covered by the free plan on the Heroku.
I will create a separate demo app instance on another cloud platform.

from django-classified.

typonaut avatar typonaut commented on May 31, 2024

So, I tried the demo site again, and I got the same response when I try to add an image file to the classified ad:

"RecursionError at /edit/56/
maximum recursion depth exceeded while calling a Python object"

I tried attaching this, but no luck, so here's a URL:

http://www.indx.co.uk/clive/django/classifieds/RecursionError_at__new_.htm

from django-classified.

typonaut avatar typonaut commented on May 31, 2024

I am now able to add images without error when submitting them. However, those uploaded images do not show in the browser.

The HTML gives a URL:

cache/f9/e9/f9e97fee4dce9a7a1c939645b6bf6fb1.jpg

runserver in terminal shows this (404)

Not Found: /django_classified/static/cache/f9/e9/f9e97fee4dce9a7a1c939645b6bf6fb1.jpg [05/Feb/2020 16:38:50] "GET /django_classified/static/cache/f9/e9/f9e97fee4dce9a7a1c939645b6bf6fb1.jpg HTTP/1.1" 404 5050

And I find the files actually here:

~/cache/f9/e9/f9e97fee4dce9a7a1c939645b6bf6fb1.jpg

Is there a setup step I am missing to link the requested URLs to the actual file locations?

Also, not sure it is necessary to with file types from the uploaded .png to a .jpg!?

from django-classified.

slyapustin avatar slyapustin commented on May 31, 2024

@typonaut Can you somehow share your project or some part of it, so I can investigate that issue?
It's not clear to me why this recursion error is happening.
Also, I notice you use a pretty old version of the demo app project.

from django-classified.

slyapustin avatar slyapustin commented on May 31, 2024

@typonaut Nevermind, I see why it's happening.

from django-classified.

slyapustin avatar slyapustin commented on May 31, 2024

This is fixed now.

from django-classified.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.