- Pycharm не видит классы HTML в CSS
- Pycharm не распознает файл main.css (ссылка на неразрешенный шаблон) (Django)
- Ответы (1 шт):
- Static CSS page can not be found when working with Pycharm
- 2 Answers
- Saved searches
- Use saved searches to filter your results more quickly
- CSS is not working when running script using Pycharm #1308
- CSS is not working when running script using Pycharm #1308
- Comments
- Не подключается css
- Подтверждение Почты Письмо отправлено на > > > > >
Pycharm не видит классы HTML в CSS
Приветствую! Кто подскажет почему Pycharm не видит классы HTML в CSS? Стили работают, просто Pycharm не подсказывает какие классы есть в шаблонах. Как исправить?
Подключил CSS к файлу, но CSS классы ASPX страница не видит
Доброго денька форумчане. Итак, я подключил CSS к файлу, но CSS классы ASPX страница не видит.
Html не видит класс CSS
Здравствуйте! Я пытаюсь сделать выдвигающийся список. Элементы списка должны быть находится поверх.
HTML не видит файл CSS
Всем привет! Друзья, очень нужна помощь. Я начинающий программист , только изучаю всё. Решил.
HTML не видит стилей CSS
Вроде всё написал правильно 100 раз проверил До этого всё работало отлично, теперь html просто не.
Mark directory as -> Source root ставил везде где только можно, не помогает. Путь к статике вроде как прописан
HTML файл не видит CSS стилей
Всем привет. Имеются 2 HTML-файла с блочной версткой, оба они индеентичны, разве что контент в них.
Html не видит css из другой папки
Есть RegistrationPage.html <html> <link rel="stylesheet".
В Pycharm при создании файла css пишет что он поддерживается в intelliJ, и css мой не подключается(
Какой-то плагин дополнительный нужно скачивать для поддержи файлов css? в файле css на код никак не.
Что оптимальнее HTML + CSS + JS + С# или HTML + CSS + JS + Java и для каких задач?
Объясните, пожалуйста что оптимальнее и для каких задач HTML + CSS + JS + C# или HTML + CSS + JS +.
Старые добрые HTML и CSS или новые HTML 5 и CSS 3?
Здравствуйте ) Дело собственно вот в чем. Я хочу на лето заняться изучением создания сайтов. .
Pycharm не распознает файл main.css (ссылка на неразрешенный шаблон) (Django)
Я начал использовать Pycharm Professional сегодня, и Pycharm не распознает мой файл main.css, ошибка:
Unresolved template reference »advert/css/main.css»
присутствует, ссылка идет после бутстрапа, сам бустрап работает.
django.contrib.staticfiles в INSTALLED_APPS в файле settings.py имеется.
Иерархия каталогов проекта
static_dir, staticfiles_dirs, base_dir и static_root.
BASE_DIR = Path(__file__).resolve().parent.parent STATIC_ROOT = "VSS/advert/static" STATIC_DIR = os.path.join(BASE_DIR, STATIC_ROOT) STATIC_URL = '/static/' DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' STATICFILES_DIRS = [ BASE_DIR / "static", ]
Так же используется шаблон Django
Почему PyCharm не «понимает» путь к css файлу, хотя подключил bootstrap стили?
Может проблема в моих настройках проекта или пайчарма?
Если я не ставил виртуальную среду для Django это может сказаться на данной проблеме?
upd: На IDE Atom, та же проблема, на сайте не меняется background, который прописан в main.css .
Ответы (1 шт):
Зайдите в Настройки в Pycharm
Settings >> Project Setting >> Django
Включите поддержку Django и укажите пути для трех следующих файлов:
Project Root Settings file Manage.py file
Когда вы предоставите эту информацию, закройте PyCharm и перезапустите его.
Static CSS page can not be found when working with Pycharm
I have been using Pycharm instead of workstations throughout the «Django Basics» course and everything has been working exactly as supposed to up until the first static assets discussion. I currently am unable to find the static CSS page and get the «»GET /static/css/layout.css HTTP/1.1″ 404 1769» message in my logs along with a similar error in the console when inspecting the elements.
At first I assumed it was a coding error and went on detective mode in search for any errors. With no luck, I downloaded Kenneth’s code from the teacher notes and have the same problem which leads my to believe that there is something in Pycharm that is different (as the use of Pycharm is the only difference) I really hope I can get some help with this as I’m really enjoying this course and was hoping to practice using Pycharm instead of workspaces to simulate a more «in the wild» experience.
To aid in the debugging, I have taken screen shots show the errors, permissions, file structure, etc.
2 Answers
Ryan S
Ryan S
One thing that jumps out is that you are linking to «layout.css» in your template, but the actual name of your css file is «layouts.css». I think that might be the cause of your 404 error — it is unable to find layout.css because it doesn’t exist.
The other thing I notice is that with Django 1.10, your STATICFILES_DIRS should be a list enclosed with square brackets [], not a tuple. This was a change that happened in a later version than the one Kenneth is using. You can see the example in the docs.
However, this change doesn’t seem to affect the outcome when I swap the two types of brackets (or at least at this stage it doesn’t). But it’s just something to keep in mind.
Brian Anstett
Brian Anstett
Thank you Ryan, That solved my problem. I very much appreciate it. Merry Christmas
Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS is not working when running script using Pycharm #1308
CSS is not working when running script using Pycharm #1308
Comments
I am using PyCharm to debug the code. But when I open via PyCharm, The CSS file doesn’t seem to work.
Using Pycharm:
Using Terminal:
According to this, I need to have my css and js files inside assets folder. It will automatically serve all the files. I have that folder inside the pycharm also.
The text was updated successfully, but these errors were encountered:
Не подключается css
В Pycharm при создании файла css пишет что он поддерживается в intelliJ, и css мой не подключается(
Какой-то плагин дополнительный нужно скачивать для поддержи файлов css? в файле css на код никак не.
Не подключается css
Добрый день. Хочу подключить ксс файл к главной, но почему-то не получается. Пару раз перепроверил.
Не подключается CSS-файл
Вопрос заключается в том, что не подключается CSS-файл к HTML при создание сайта на django. Вот.
CSS не подключается =_=
Прописываю данную строку: <link rel="stylesheet" type="text/css" href="style.css"> Но css не.
1. Что это? Фласк, фастапи, еще что то?
2. Весь код роута + код шаблона + структура файлов
Добавлено через 2 часа 46 минут
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
@app.route('/verification//', methods=['GET', 'POST']) def verification(id_ver, sec_email): error = '' id_ver = int(str(id_ver).strip().replace('(', '').replace(')', '')) form = VerifForm() if form.validate_on_submit(): db_sess = database.create_session() code_db = str(*db_sess.query(Reg.code_ver).filter(Reg.id == id_ver)).replace(',', '') code_db = code_db.replace('(', '').replace(')', '') db_sess.close() bool_code = exam_code(form.code_str.data, code_db) if bool_code: return redirect(f'/register_data//') else: error = 'Неверный код' elif form.submit.data: error = 'Введите код' return render_template('verification.html', title='Подтверждение почты', form=form, error=error, sec_email=sec_email)
Подтверждение Почты
Письмо отправлено на >