Giter Club home page Giter Club logo

django-bona-blog's Issues

Migration 0004_article_deleted broken: Duplicate column name 'deleted'

Fresh project using Dj 3.1.

File "/opt/dev/venv/lib/python3.7/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/opt/dev/venv/lib/python3.7/site-packages/django/db/backends/mysql/base.py", line 73, in execute
    return self.cursor.execute(query, args)
  File "/opt/dev/venv/lib/python3.7/site-packages/MySQLdb/cursors.py", line 206, in execute
    res = self._query(query)
  File "/opt/dev/venv/lib/python3.7/site-packages/MySQLdb/cursors.py", line 319, in _query
    db.query(q)
  File "/opt/dev/venv/lib/python3.7/site-packages/MySQLdb/connections.py", line 259, in query
    _mysql.connection.query(self, query)
MySQLdb._exceptions.OperationalError: (1060, "Duplicate column name 'deleted'")

django-tinymce missing from requirements

tinymce is required by one of the migrations but is not installed by default:

app_1       |   File "/usr/local/lib/python3.8/site-packages/blog/migrations/0003_auto_20200618_2322.py", line 4, in <module>
app_1       |     import tinymce.models
app_1       | ModuleNotFoundError: No module named 'tinymce'

Dashboard missing style

Hey. I'm having my first blog cus of you haha..
Idk this is a issue or i missed something but my dashboard completely missing style but everything is fine
What should I do?

Can't Collect static files

when I run python manage.py collectstatic I have this error

Traceback (most recent call last):
File "manage.py", line 22, in
main()
File "manage.py", line 18, in main
execute_from_command_line(sys.argv)
File "/home/zestarlab/Django_projects/zestarlab/lib/python3.8/site-packages/django/core/management/init.py", line 419, in execute_from_command_line
utility.execute()
File "/home/zestarlab/Django_projects/zestarlab/lib/python3.8/site-packages/django/core/management/init.py", line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/zestarlab/Django_projects/zestarlab/lib/python3.8/site-packages/django/core/management/base.py", line 354, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/zestarlab/Django_projects/zestarlab/lib/python3.8/site-packages/django/core/management/base.py", line 398, in execute
output = self.handle(*args, **options)
File "/home/zestarlab/Django_projects/zestarlab/lib/python3.8/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 187, in handle
collected = self.collect()
File "/home/zestarlab/Django_projects/zestarlab/lib/python3.8/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 105, in collect
for path, storage in finder.list(self.ignore_patterns):
File "/home/zestarlab/Django_projects/zestarlab/lib/python3.8/site-packages/django/contrib/staticfiles/finders.py", line 130, in list
for path in utils.get_files(storage, ignore_patterns):
File "/home/zestarlab/Django_projects/zestarlab/lib/python3.8/site-packages/django/contrib/staticfiles/utils.py", line 23, in get_files
directories, files = storage.listdir(location)
File "/home/zestarlab/Django_projects/zestarlab/lib/python3.8/site-packages/django/core/files/storage.py", line 323, in listdir
for entry in os.scandir(path):
FileNotFoundError: [Errno 2] No such file or directory: '/home/zestarlab/Django_projects/zestarlab/zestarlab/blog/static'

makemigrations error

after doing step 'f', I'm in a migrations error.
my error case is that
"/www/django-bona-blog/bona_env/lib/python3.9/site-packages/blog/migrations/0002_auto_20200618_2226.py", line 4, in
import tinymce.models"

I want to know that is a reason of python version or package issue.
And I think, this package is using 'CKEDITOR', and 'tinymce' is different web-editor solution.

I can't find any support informations about 'tinymce' in this readme.

  • I just make a django new project, and doing following your step.
    I don't know whether it is. If not, let me know how I can.

Error when using django-allauth in place of django.contrib.auth.

When used in projects using django-allauth, the User relations in several places fai, and yield the following error:

django.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:

ERRORS:
blog.Article.author: (fields.E301) Field defines a relation with the model 'auth.User', which has been swapped out.
        HINT: Update the relation to point at 'settings.AUTH_USER_MODEL'.
blog.Profile.user: (fields.E301) Field defines a relation with the model 'auth.User', which has been swapped out.
        HINT: Update the relation to point at 'settings.AUTH_USER_MODEL'.

System check identified 2 issues (0 silenced).

Here's the recommended approach to referencing the User model from the Django documentation:

Referencing the User model

I'd really love to see this app in action. It looks amazing, and exactly what I'm looking for. But django-allauth isn't something I can let go of. It's an great collection of integrated user-related functionalities, and would be be an amazing addition to any project wanting to use your blog app. (Like mine. :D )

django-allauth

templates not found

I keep running into ``

  File "/home/mfalme/.virtualenvs/django-backend/lib/python3.7/site-packages/django/template/response.py", line 105, in render
    self.content = self.rendered_content
  File "/home/mfalme/.virtualenvs/django-backend/lib/python3.7/site-packages/django/template/response.py", line 81, in rendered_content
    template = self.resolve_template(self.template_name)
  File "/home/mfalme/.virtualenvs/django-backend/lib/python3.7/site-packages/django/template/response.py", line 63, in resolve_template
    return select_template(template, using=self.using)
  File "/home/mfalme/.virtualenvs/django-backend/lib/python3.7/site-packages/django/template/loader.py", line 47, in select_template
    raise TemplateDoesNotExist(', '.join(template_name_list), chain=chain)
django.template.exceptions.TemplateDoesNotExist: blog/article/home.html, blog/article_list.html

after following instructions here

Is there sth I might be missing?

"blog" in INSTALLED_APPS

Following the setup instrudtions I encontered the following error:

RuntimeError: Model class blog.models.category_models.Category doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.

I believe the instruction to add blog.apps.BlogConfig to INSTALLED_APPS is wrong, and this should just be blog instead.

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.