Coder Social home page Coder Social logo

meeb / django-distill-example Goto Github PK

View Code? Open in Web Editor NEW
39.0 5.0 10.0 175 KB

An example fully working statically generated website using Django Distill

License: MIT License

Makefile 1.94% Python 73.53% CSS 0.38% HTML 24.16%
django django-distill django-cachekiller netlify

django-distill-example's Introduction

Hi

My GitHub profile hosts any public project that is polished enough to be released and used by others. Feel free to drop me an email, create issues or make contributions. A special massive thank you to anyone who sponsors me.

Cheers!

//meeb

🔗 meeb.org    |    📧 [email protected]


meeb's GitHub stats

django-distill-example's People

Contributors

dependabot[bot] avatar meeb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

django-distill-example's Issues

Trying to include app urls, can't get it working

Hi there, I am currently trying to add urls by including them like
distill_path('', include("maintools.urls"), name="maintoolsurls"),
but can't get it working ,its throwing an error.

Traceback (most recent call last):
  File "C:\Users\Aman Rawat\Desktop\work\django\amancodes\env\lib\site-packages\django_distill\renderer.py", line 244, in generate_uri
    uri = reverse(view_name, args=param_set)
  File "C:\Users\Aman Rawat\Desktop\work\django\amancodes\env\lib\site-packages\django\urls\base.py", line 86, in reverse
    return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
  File "C:\Users\Aman Rawat\Desktop\work\django\amancodes\env\lib\site-packages\django\urls\resolvers.py", line 698, in _reverse_with_prefix        
    raise NoReverseMatch(msg)
django.urls.exceptions.NoReverseMatch: Reverse for 'maintoolsurls' not found. 'maintoolsurls' is not a valid view function or pattern name.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Aman Rawat\Desktop\work\django\amancodes\manage.py", line 22, in <module>
    main()
  File "C:\Users\Aman Rawat\Desktop\work\django\amancodes\manage.py", line 18, in main
    execute_from_command_line(sys.argv)
  File "C:\Users\Aman Rawat\Desktop\work\django\amancodes\env\lib\site-packages\django\core\management\__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "C:\Users\Aman Rawat\Desktop\work\django\amancodes\env\lib\site-packages\django\core\management\__init__.py", line 413, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Users\Aman Rawat\Desktop\work\django\amancodes\env\lib\site-packages\django\core\management\base.py", line 354, in run_from_argv
    self.execute(*args, **cmd_options)
  File "C:\Users\Aman Rawat\Desktop\work\django\amancodes\env\lib\site-packages\django\core\management\base.py", line 398, in execute
    output = self.handle(*args, **options)
  File "C:\Users\Aman Rawat\Desktop\work\django\amancodes\env\lib\site-packages\django_distill\management\commands\distill-local.py", line 83, in handle
    render_to_dir(output_dir, urls_to_distill, stdout)
  File "C:\Users\Aman Rawat\Desktop\work\django\amancodes\env\lib\site-packages\django_distill\renderer.py", line 382, in render_to_dir
    for page_uri, file_name, http_response in renderer.render():
  File "C:\Users\Aman Rawat\Desktop\work\django\amancodes\env\lib\site-packages\django_distill\renderer.py", line 192, in render_all_urls
    uri = self.generate_uri(url, view_name, param_set)
  File "C:\Users\Aman Rawat\Desktop\work\django\amancodes\env\lib\site-packages\django_distill\renderer.py", line 246, in generate_uri
    uri = reverse(view_name_ns, args=param_set)
  File "C:\Users\Aman Rawat\Desktop\work\django\amancodes\env\lib\site-packages\django\urls\base.py", line 86, in reverse
    return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
  File "C:\Users\Aman Rawat\Desktop\work\django\amancodes\env\lib\site-packages\django\urls\resolvers.py", line 698, in _reverse_with_prefix        
    raise NoReverseMatch(msg)
django.urls.exceptions.NoReverseMatch: Reverse for 'maintoolsurls' not found. 'maintoolsurls' is not a valid view function or pattern name.

It says no reverse found. However this page is working perfectly when seen on browser.
image
Can you please help??

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.