0 12:49 AM, Benjamin Schollnick wrote:
> What I generally do is use https://pypi.org/project/nameparser/
>
> While Clive is correct, I haven’t seen name parser fail at breaking it apart
> correct so far.
>
> - Benjamin
>
>
>
>> On Jul 8, 2020, at 6:43 PM, Clive
Hi:
Although I spent time with researching I have no starting point for
solving my problem. Perhaps someone of you could give me a tip..
I have a simple model.py, e.g.
class AdressData(models.Model):
forename=models.CharField(max_length=20,null=True,blank=True)
surname=models.CharField(
No error message anymore :)
On 6/12/20 11:00 AM, Aldian Fazrihady wrote:
> After django "forget" the directory, what do you expect makemessages
> to do?
>
> On Fri, Jun 12, 2020 at 3:41 PM Kai Kobschätzki
> mailto:kai.kobschaet...@gmail.com>> wrote:
>
>
er.
> For example,
> LOCALE_PATHS = [os.path.join(BASE_DIR, 'new_locale')]
>
> On Fri, Jun 12, 2020 at 3:08 PM Kai Kobschätzki
> mailto:kai.kobschaet...@gmail.com>> wrote:
>
> Hi all,
>
> I have some *.po files. But now I am getting the message error „
Hi all,
I have some *.po files. But now I am getting the message error „Unable
to find a locale path to store translations for file $directory“.
All I find with google is that I have to create a subdirectory locale in
the $directory. But I removed the $directory, so I can't or I do not
want to re
TemplateView.as_view(template_name="docs/html/index.html"))
>
> then I can see the index.html but without css and no link works..
>
> Greetings
>
> bengoshi
>
> On 5/1/20 4:25 PM, Motaz Hejaze wrote:
>> Make a v
>
> On Fri, 1 May 2020, 10:09 am Kai Kobschätzki,
> mailto:kai.kobschaet...@gmail.com>> wrote:
>
> Hi Amit,
>
> thanks for your response. But in this way, I can't use the sphinx
> templates, the links are not correct and after every new make html
>
Gupta wrote:
> Hii
> If u want to just add your file in your django project u can probably
> copy and paste the file in your project file and after that you can
> successfully use your file in the project by just writing the name of
> your file with correct extension
>
> On Fri
Hi,
I installed sphinx and I get an documentation in
project_main/docs/_build/html, starting with html/index.html. In so far
- fine.
Now I want to present this documents inside my project so I can see in
the nav-bar a "doc" where I can see them. But I have no idea how to
start it. I tried it with
Thanks for the tip, I will read it :)
Greetings
bengoshi
On 2/14/20 2:31 PM, Roger Gammans wrote:
> No problem,
>
> It 's all explained here :
> https://docs.djangoproject.com/en/3.0/ref/models/querysets/
>
>
> On Fri, 2020-02-14 at 14:27 +0100, Kai Kobschätzki wrote:
Hi Roger:
Thanks a lot! Such as easy :)
Greetings
bengoshi
On 2/14/20 2:15 PM, Roger Gammans wrote:
> Use:
>
> for data in Journal.objects.all():
>
>
>
>
> On Fri, 2020-02-14 at 14:13 +0100, Kai Kobschätzki wrote:
>> Hi:
>>
>> I want t
Hi:
I want to do something with the content of a table. Problem is, that the
IDs are not continuous. I tried:
import .models from Journal
last = Journal.obejects.last()
last += 1
for i in range(last):
try:
data = Journal.objects.get(pk=i)
doing something with this data
except:
pa
Hi,
I want to embedding css- and js-files for seperate templates.
I have an django-project with project/static/css/base.css. In the base.html
{% load static %}
and in the base.css
header {
background-color: #F8F8F8;
}
In my settings.py
STATICFILES_DIRS = [
os.
Heiho,
I wrote a form in forms.py with some validation stuff, especially with
def clean_field(). All fine. But in some usecases I would prefare to
switch off at least some of the validation. For example it make no sense
to check for a double id when I want to delete a reccord. Is it possible
to sw
ation in the documentation
> here
> https://docs.djangoproject.com/en/2.2/ref/forms/widgets/
>
> -Juhana
>
> On Sun, 28 Jul 2019 at 16.57, Kai Kobschätzki
> mailto:kai.kobschaet...@gmail.com>> wrote:
>
> Heiho,
>
> I wrote a class in views.py
>
Heiho,
I wrote a class in views.py
class UploadFileForm(forms.Form):
file = forms.FileField()
and I use it in a function like
def import_data(request):
if request.method == "POST":
form = UploadFileForm(request.POST,
request.FILES)
[...]
return r
not Django. Django just emits HTML that is parsed by
> your browser.
>
>
> ti 2. heinäk. 2019 klo 15.14 Kai Kobschätzki
> mailto:kai.kobschaet...@gmail.com>>
> kirjoitti:
>
> Hi:
>
> I tried to load bootstrap and an own css-file. But in which order
>
Hi:
I tried to load bootstrap and an own css-file. But in which order does
django load it?
I have tried in my base.html:
{% load static %}
{% block title %}gyousei{% endblock title %}
... and the log is writing: [02/Jul/2019 11:54:38] "GET /
HTTP/1.1" 200 6259 [02/Jul/201
goshi
On 6/24/19 10:39 PM, Sebastian Jung wrote:
> You send your Form to function journal_overview_view. There are
> nothing with save()
>
> Regards
>
> Kai Kobschätzki <mailto:kai.kobschaet...@gmail.com>> schrieb am Mo., 24. Juni 2019, 21:14:
>
> Hi Seba
Hi Sebastian,
here is the code:
urls.py:
from django.contrib import admin
from django.urls import path
from rewe.views import account_overview_view, journal_booking_view,
journal_overview_view
from crm.views import member_overview_view, member_create_view
urlpatterns = [
path('', journal_o
Hi Sipum,
yes, you are right!
Best Greetings
bengoshi
Am Mo., 24. Juni 2019 um 08:45 Uhr schrieb Sipum Mishra :
> Hi bengoshi,
>
> If i m not wrong, your concern is when you add action ='journal' then data
> are not saved.
> Right?
>
> Thanks.
>
>
> On Mon, 24 Jun, 2019, 2:07 AM bengoshi,
> wr
21 matches
Mail list logo