Hello Every one
I am new to Django. I have been working from 4 to 5 months only.
I have deployed the real time Project on PythonAnywhere.
Client is using this now.
My Basic question is
How to Secure our Project. What are the Preventive Steps We must take
before deployment of Project.
Some
Mention aws key value in setting
On Thu, Sep 5, 2019, 2:06 AM mohammed habib wrote:
> Did you run python manage.py collectstatic
>
> Are you using static template tags to heed your html link href fields
>
> Sent from my iPhone
>
> On 4 Sep 2019, at 23:06, Elias Coutinho wrote:
>
> Guys good
I'm trying to set up an Apache reverse proxy for a django app that is
running in a singularity container.
I've tried the following in my apache conf.d/app.conf:
ProxyPreserveHost OnRequestHeader set X-Forwarded-Proto 'https'
env=HTTPSProxyPass "/app_prefix/"
Hi All,
How to get the ForeignKey value while querying the model object.
I was trying to query a model object "mla" to fetch a specific sets of columns
and its working fine but the field ForeignKey "instuid" returning a numeric
value instant of actual associated value.
Do I need to edit
I'm trying to set up an Apache reverse proxy for a django app that is
running in a singularity container. I'm also trying to enforce HTTPS on
the Apache frontend.
I've tried the following in my apache conf.d/app.conf:
ProxyPreserveHost OnRequestHeader set X-Forwarded-Proto 'https'
Hi All,
How to get the ForeignKey value while querying the model object.
I was trying to query a model object "mla" to fetch a specific sets of columns
and its working fine but the field ForeignKey i.e "instuid" returning a numeric
value instant of actual associated value.
Do I need
Did you run python manage.py collectstatic
Are you using static template tags to heed your html link href fields
Sent from my iPhone
> On 4 Sep 2019, at 23:06, Elias Coutinho wrote:
>
> Guys good afternoon,
>
> I managed to put my static folder in s3, the problem is that my effects
>
Guys good afternoon,
I managed to put my static folder in s3, the problem is that my effects
already lost power. lol
The staticfiles folder where the auxiliary applications are installed stop
working, in my case it was django-material, select2 and others.
If I comment this code
You have at least 2 possibilities, depending on your exact needs:
1- The preferred method is to Import the models from the app they reside
at, like in:
*from foo_app.models import bar_model*
2- You could also have the models you need to share created at the project
level thus making
Its done now.. thank u everybody
Now i want to do that it will show only the latest book with detail of a
author
On Wed, 4 Sep, 2019, 6:07 PM Amit Samanta, wrote:
> i get all thank you for your help..
> the actuall funda is
> i have to show author name with related to that i have to show
Hey RJ,
All your views have the same name, that is probably the reason you're not
able to view the salary field, since its displaying the first view i.e for
employe_hireSerializer always.
On Wed, Sep 4, 2019 at 7:11 PM RONAK JAIN wrote:
> Hello
>
>
> I am trying to do nested but I am not
i get all thank you for your help..
the actuall funda is
i have to show author name with related to that i have to show books name
of the same author now the detail related to the books
this is wht i need
:-(
On Wed, 4 Sep, 2019, 6:01 PM Devdutt Bhati,
wrote:
> if you created table in
def getdetails(request11):
objs = Details.objects.all()
context = {'objs; : objs}
return render(request, 'full_path_of_template', context}
templates in which folders path should set in setting file. try this all
the best and revert me.
view.py :-
def getdetails(request):
if you created table in models.py. you can import table at view file
like : from
appname .models import table/class name .
when you got the table data at views file then use it as
*variable=Tablename.objects.all()* now get all values in variable. it can
render in render function and use values at
wiil get resolve the issue revert me.
On Wed, Sep 4, 2019 at 1:07 AM Devdutt Bhati
wrote:
> if you created table in models.py. you can import table at view file like
> : from appname .models import table/class name .
> when you got the table data at views file then use it as
>
It isn't possible to share a local db between two apps.
Here are the alternatives you can use:
- Create api's for all the operations you want to perform.
- Use an hosted db service(e.g. Postgres on heroku).
On Wed, Sep 4, 2019 at 10:39 AM Balaji Shetty
wrote:
> Hi Everyone
>
> Can
by the above it is not giving any error but it is not showing the
correspondence names and also it is showing all the fields in detail :-((
please help
On Wed, 4 Sep, 2019, 4:10 PM Anirudh Jain,
wrote:
> Then simply use {{ obj.book_name.name }} in template where again, I am
> assuming 'name'
as you can see
https://github.com/shubham1507/school/blob/trial/users/serializers.py I
have created two serizer for two registrtion form
shubham1507/school
Contribute to shubham1507/school development by creating an account on
GitHub.
how can we use single serializer with 2 differnt
Then simply use {{ obj.book_name.name }} in template where again, I am
assuming 'name' is the column name you have give to book name in Books model
On Wed, Sep 4, 2019 at 3:25 PM Amit Samanta wrote:
> You have gussed correctly..
> but i have taked book id as fk but i need the book name
>
> On
You have gussed correctly..
but i have taked book id as fk but i need the book name
On Wed, 4 Sep, 2019, 2:41 PM Anirudh Jain,
wrote:
> This can be done easily if you make a proper view function and render data
> from it in template properly.
> A view function can be written like this :-
>
>
Also, I am not sure how you have written html code, so use it properly
according to your convinience.
On Wed, Sep 4, 2019 at 2:41 PM Anirudh Jain
wrote:
> This can be done easily if you make a proper view function and render data
> from it in template properly.
> A view function can be written
This can be done easily if you make a proper view function and render data
from it in template properly.
A view function can be written like this :-
Here I am assuming that you want get the details of all the books/auuthors
at one page. If you want details of a particular book, then the following
i just need the veiw.py after this done i will try your tutorial
On Wed, 4 Sep, 2019, 1:34 PM Lim Kai Wey, wrote:
> Hey Amit,
>
> I suggest you to follow this tutorial to build your project,
>
> https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Tutorial_local_library_website
>
>
https://github.com/SurajFc/Django-DRF-Boilerplate-with-otp-verification
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
Did you do the reverse with 'reviews:detail'?
Can you post your new urls.py and the code you use to do the reverse?
Julien Enselme
Développeur chez BureauxLocaux
Le mer. 4 sept. 2019 à 00:35, Pasquale a écrit :
> Applied your suggestion,now I get
> django.urls.exceptions.NoReverseMatch:
Hey Amit,
I suggest you to follow this tutorial to build your project,
https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Tutorial_local_library_website
It teaches you all the basics that you need to know from scratch, which in
my opinion will answer all the questions you're
now how can i get the name for author and details??
On Wed, 4 Sep, 2019, 10:25 AM Bhoopesh sisoudiya,
wrote:
> Hi Amit,
>
> You can use
> =≠=
> Book.objects.select_related(FK).select_related(FK). values (select column
> name which you want).all()
>
>
> Thanks
I want try is...
there will be a dashboard
which will show
Author name
all the books which the author written
details of the book published date , avout the book in the above format
On Wed, 4 Sep, 2019, 12:08 PM Anirudh Jain,
wrote:
> Could you please elaborate/be more clear about what you
Could you please elaborate/be more clear about what you are really trying
to do ?
On Wed, 4 Sep 2019, 10:26 Bhoopesh sisoudiya, wrote:
> Hi Amit,
>
> You can use
> =≠=
> Book.objects.select_related(FK).select_related(FK). values (select column
> name which
29 matches
Mail list logo