Comments (10)
I believe this is related to a problem in the way your project is configured. Check your media configuration 😉
from django-precise-bbcode.
Closing since this is not really related to the project itself.
from django-precise-bbcode.
Dear ellmetha,
I wish you would be a bit more specific. I am undergoing the exact same problem and I have no clue what "check your media configuration" means. It would be helpful in your documentation to specify what we need to do in the install process not to undergo this problem.
Also, I wish I had more specific guidelines on how to have the buttons of the bbcode (just like here on github) in the admin area to enter the content of a blog post on top of the text area.
It may not be directly related to the project, but it is directly linked to the "getting started" doc.
Kind regards
from django-precise-bbcode.
The media settings are not part of the this project, which is what ellmetha was referring to. I forgot to set my media root and media url inside the settings.py. The following is what fixed my issue.
`# Media Root
MEDIA_ROOT = os.path.join(PROJECT_PATH, 'media')
MEDIA_URL = '/media/'`
Make sure you edit root to fit your project needs.
from django-precise-bbcode.
Also as far as the editor ellmetha mentions it will not be part of this project in another issue located here
from django-precise-bbcode.
from django-precise-bbcode.
Again you cant just copy and past. My MEDIA_ROOT has PROJECT_PATH which is a custom variable i have created in my settings.py file. You will need to set up media_root to fit your project.
Also i would change smilies back to media as all uploaded content would end up int eh folder smilies then.
from django-precise-bbcode.
Thanks a lot with your hints, I could finally understand what I was missing:
once the MEDIA_ROOT and MEDIA_URL are setup in the settings.py
You have to go to urls.py and add the following:
from django.conf.urls.static import static
from my_project import settings (assuming that the MEDIA_ROOT is the my_porject folder)
and then url patterns =[
#whatever
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
With this correction, when I upload the smiley in the admin page, I have access to my smiley, at last.
Now, I can focus on the rendering.
All the best!
from django-precise-bbcode.
Oh yea. I forgot about the urls.py file. Sorry about that.
from django-precise-bbcode.
No worries, it is also good to do part of the way in an autonomous way ;-) You've been so helpful! Thanks again
from django-precise-bbcode.
Related Issues (20)
- Can't add a new object - RuntimeError: 'path' must be None or a list, not <class '_frozen_importlib_external._NamespacePath'> HOT 3
- Parsing BBCode to List
- Image with link is not working HOT 1
- escape bbcode option for tags? HOT 1
- Django precise_bbcode not properly parsing contents of [code] tags?
- Documentation mislabels "BBCODE_SMILIES_UPLOAD_TO" as "SMILIES_UPLOAD_TO" HOT 1
- Smiley Codes Can Pre-Empt Each Other.
- Python 3.7 broken: AttributeError: module 're' has no attribute '_pattern_type' HOT 2
- BBCode not rendered in base model
- Error on Django 3 HOT 2
- BBCode replacing URLs in contents HOT 2
- BBCode [url] tags do not work when the URL is encapsulated in single quotes
- TEXT placeholder doesn't match unicode characters
- Django reports model changes (missing migration) HOT 2
- Tags with a dash inside doesn't work [b]-[/b] or [b]--[/b]
- Relative urls don't work HOT 1
- Drop "All rights reserved" clause HOT 1
- string index out of range
- Error: reduce() arg 2 must support iteration HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-precise-bbcode.