├── .gitignore ├── LICENSE ├── README.md ├── account ├── __init__.py ├── admin │ ├── __init__.py │ └── admin_custom_user.py ├── api │ ├── __init__.py │ └── serializer │ │ ├── __init__.py │ │ └── serializer_base_user.py ├── apps.py ├── migrations │ ├── 0001_initial.py │ └── __init__.py ├── models │ ├── __init__.py │ └── model_custom_user.py ├── tests.py └── views.py ├── blog ├── __init__.py ├── admin │ ├── __init__.py │ ├── admin_category.py │ └── admin_post.py ├── api │ ├── __init__.py │ ├── router.py │ ├── serializer │ │ ├── __init__.py │ │ ├── serializer_base_category.py │ │ ├── serializer_create_update_category.py │ │ ├── serializer_create_update_post.py │ │ ├── serializer_detail_category.py │ │ ├── serializer_detail_post.py │ │ ├── serializer_list_category.py │ │ └── serializer_list_post.py │ └── viewset │ │ ├── __init__.py │ │ ├── viewset_category.py │ │ └── viewset_post.py ├── apps.py ├── forms │ ├── __init__.py │ └── form_create_update_post.py ├── migrations │ ├── 0001_initial.py │ ├── 0002_post_author_en_post_author_fa_post_category_en_and_more.py │ ├── 0003_remove_post_author_en_remove_post_author_fa_and_more.py │ ├── 0004_remove_post_status_en_remove_post_status_fa.py │ ├── 0005_category_description_en_category_description_fa_and_more.py │ ├── 0006_category_is_active_post_is_active_and_more.py │ ├── 0007_category_is_active_en_category_is_active_fa_and_more.py │ └── __init__.py ├── models │ ├── __init__.py │ ├── model_category.py │ └── model_post.py ├── templates │ └── blog │ │ ├── create_Update_post.html │ │ ├── detail_post.html │ │ └── list_post.html ├── tests.py ├── translation.py ├── urls.py ├── urls_api.py └── views │ ├── __init__.py │ ├── view_create_post.py │ ├── view_detail_post.py │ ├── view_list_post.py │ └── view_update_post.py ├── core ├── __init__.py ├── asgi.py ├── settings.py ├── urls.py └── wsgi.py ├── locale ├── en │ └── LC_MESSAGES │ │ └── django.po └── fa │ └── LC_MESSAGES │ └── django.po ├── manage.py ├── requirements.txt ├── sample_env.txt ├── templates ├── base.html └── inc │ └── language.html └── utils ├── __init__.py ├── apps.py ├── general ├── __init__.py ├── api │ ├── __init__.py │ └── serializer │ │ ├── __init__.py │ │ ├── serializer_date.py │ │ ├── serializer_seo.py │ │ └── serializer_taxonomy.py └── models │ ├── __init__.py │ ├── model_basic_post_abstract.py │ ├── model_date_abstract.py │ ├── model_seo_abstract.py │ ├── model_status_abstract.py │ ├── model_status_language.py │ └── model_taxonomy_abstraction.py ├── migrations └── __init__.py ├── templatetags ├── __init__.py └── change_language_tag.py ├── tests.py ├── utile ├── __init__.py └── unique_slug_generator.py └── views.py /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | *$py.class 5 | .idea 6 | .idea/ 7 | 8 | # C extensions 9 | *.so 10 | 11 | # Distribution / packaging 12 | .Python 13 | build/ 14 | develop-eggs/ 15 | dist/ 16 | downloads/ 17 | eggs/ 18 | .eggs/ 19 | lib/ 20 | lib64/ 21 | parts/ 22 | sdist/ 23 | var/ 24 | wheels/ 25 | pip-wheel-metadata/ 26 | share/python-wheels/ 27 | *.egg-info/ 28 | .installed.cfg 29 | *.egg 30 | MANIFEST 31 | 32 | # PyInstaller 33 | # Usually these files are written by a python script from a template 34 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 35 | *.manifest 36 | *.spec 37 | 38 | # Installer logs 39 | pip-log.txt 40 | pip-delete-this-directory.txt 41 | 42 | # Unit test / coverage reports 43 | htmlcov/ 44 | .tox/ 45 | .nox/ 46 | .coverage 47 | .coverage.* 48 | .cache 49 | nosetests.xml 50 | coverage.xml 51 | *.cover 52 | *.py,cover 53 | .hypothesis/ 54 | .pytest_cache/ 55 | 56 | # Translations 57 | *.mo 58 | *.pot 59 | 60 | # Django stuff: 61 | *.log 62 | local_settings.py 63 | db.sqlite3 64 | db.sqlite3-journal 65 | 66 | # Flask stuff: 67 | instance/ 68 | .webassets-cache 69 | 70 | # Scrapy stuff: 71 | .scrapy 72 | 73 | # Sphinx documentation 74 | docs/_build/ 75 | 76 | # PyBuilder 77 | target/ 78 | 79 | # Jupyter Notebook 80 | .ipynb_checkpoints 81 | 82 | # IPython 83 | profile_default/ 84 | ipython_config.py 85 | 86 | # pyenv 87 | .python-version 88 | 89 | # pipenv 90 | # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. 91 | # However, in case of collaboration, if having platform-specific dependencies or dependencies 92 | # having no cross-platform support, pipenv may install dependencies that don't work, or not 93 | # install all needed dependencies. 94 | #Pipfile.lock 95 | 96 | # PEP 582; used by e.g. github.com/David-OConnor/pyflow 97 | __pypackages__/ 98 | 99 | # Celery stuff 100 | celerybeat-schedule 101 | celerybeat.pid 102 | 103 | # SageMath parsed files 104 | *.sage.py 105 | 106 | # Environments 107 | .env 108 | .venv 109 | env/ 110 | venv/ 111 | ENV/ 112 | env.bak/ 113 | venv.bak/ 114 | 115 | # Spyder project settings 116 | .spyderproject 117 | .spyproject 118 | 119 | # Rope project settings 120 | .ropeproject 121 | 122 | # mkdocs documentation 123 | /site 124 | 125 | # mypy 126 | .mypy_cache/ 127 | .dmypy.json 128 | dmypy.json 129 | 130 | # Pyre type checker 131 | .pyre/ 132 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Django-Blog-Multilingual 2 | 3 | Django-Blog-Multilingual is a blog web application built with the Django web framework. This application is designed to be multilingual, allowing users to create and read blog posts in multiple languages. 4 | 5 | ## Features 6 | - Multilingual support: Users can create and read blog posts in multiple languages. 7 | - User authentication: Users can create accounts and log in to create, edit, and delete their own blog posts. 8 | - Admin dashboard: Administrators can manage all blog posts and user accounts from the admin dashboard. 9 | - Responsive design: The web application is designed to be responsive, adapting to different screen sizes and devices. 10 | 11 | ## Installation 12 | 1. Clone the repository: 13 | 14 | ```bash 15 | git clone https://github.com/Mizfa-Tech/Django-Blog-Multilingual 16 | 17 | ``` 18 | 2. Navigate to the project directory: 19 | ```bash 20 | cd Django-Blog-Multilingual 21 | ``` 22 | 3. Create a virtual environment: 23 | ```bash 24 | python -m venv env 25 | ``` 26 | 27 | 4. Activate the virtual environment: 28 | On Windows: 29 | ```bash 30 | env\Scripts\activate 31 | ``` 32 | On macOS and Linux: 33 | ```bash 34 | source env/bin/activate 35 | ``` 36 | 37 | 38 | 5. Install the required packages: 39 | ```bash 40 | pip install -r requirements.txt 41 | ``` 42 | 43 | 6. Run the database migrations & create superuser: 44 | ```bash 45 | python manage.py migrate 46 | python manage.py createsuperuser 47 | ``` 48 | 49 | 7. Run the development server: 50 | ```bash 51 | python manage.py runserver 52 | ``` 53 | 54 | 8. Open the web application in your browser: 55 | ```bash 56 | http://localhost:8000/ 57 | ``` 58 | -------------------------------------------------------------------------------- /account/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mizfa-Tech/Django-Blog-Multilingual/d8549653cc7de92d10c8fce784abc15d60a05d62/account/__init__.py -------------------------------------------------------------------------------- /account/admin/__init__.py: -------------------------------------------------------------------------------- 1 | from .admin_custom_user import CustomUserAdmin 2 | -------------------------------------------------------------------------------- /account/admin/admin_custom_user.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from django.contrib.auth import get_user_model 3 | 4 | 5 | @admin.register(get_user_model()) 6 | class CustomUserAdmin(admin.ModelAdmin): 7 | list_display = ('username', 'email', 'first_name', 'last_name', 'is_active', 'is_staff', 'is_superuser') 8 | search_fields = ('username', 'email', 'first_name', 'last_name') 9 | 10 | 11 | fieldsets = ( 12 | ("Personal", {'fields': ('username', "password", 'email', 'first_name', 'last_name',)}), 13 | ("Permission", {'fields': ('is_active', 'is_staff', 'is_superuser')}), 14 | ) 15 | 16 | add_fieldsets = ( 17 | ("Personal", {'fields': ('username', "password", 'email', 'first_name', 'last_name',)}), 18 | ("Permission", {'fields': ('is_active', 'is_staff', 'is_superuser')}), 19 | ) 20 | -------------------------------------------------------------------------------- /account/api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mizfa-Tech/Django-Blog-Multilingual/d8549653cc7de92d10c8fce784abc15d60a05d62/account/api/__init__.py -------------------------------------------------------------------------------- /account/api/serializer/__init__.py: -------------------------------------------------------------------------------- 1 | from .serializer_base_user import BaseUserSerializer -------------------------------------------------------------------------------- /account/api/serializer/serializer_base_user.py: -------------------------------------------------------------------------------- 1 | from rest_framework import serializers 2 | from django.contrib.auth import get_user_model 3 | 4 | 5 | class BaseUserSerializer(serializers.ModelSerializer): 6 | class Meta: 7 | model = get_user_model() 8 | fields = ('id', 'username', 'email') 9 | read_only_fields = ('id', 'username', 'email') 10 | -------------------------------------------------------------------------------- /account/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class AccountConfig(AppConfig): 5 | default_auto_field = 'django.db.models.BigAutoField' 6 | name = 'account' 7 | -------------------------------------------------------------------------------- /account/migrations/0001_initial.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 4.1.2 on 2022-10-29 13:25 2 | 3 | import django.contrib.auth.models 4 | import django.contrib.auth.validators 5 | from django.db import migrations, models 6 | import django.utils.timezone 7 | 8 | 9 | class Migration(migrations.Migration): 10 | 11 | initial = True 12 | 13 | dependencies = [ 14 | ('auth', '0012_alter_user_first_name_max_length'), 15 | ] 16 | 17 | operations = [ 18 | migrations.CreateModel( 19 | name='CustomUser', 20 | fields=[ 21 | ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 22 | ('password', models.CharField(max_length=128, verbose_name='password')), 23 | ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), 24 | ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), 25 | ('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username')), 26 | ('first_name', models.CharField(blank=True, max_length=150, verbose_name='first name')), 27 | ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), 28 | ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), 29 | ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')), 30 | ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), 31 | ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), 32 | ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.group', verbose_name='groups')), 33 | ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.permission', verbose_name='user permissions')), 34 | ], 35 | options={ 36 | 'verbose_name': 'user', 37 | 'verbose_name_plural': 'users', 38 | 'abstract': False, 39 | }, 40 | managers=[ 41 | ('objects', django.contrib.auth.models.UserManager()), 42 | ], 43 | ), 44 | ] 45 | -------------------------------------------------------------------------------- /account/migrations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mizfa-Tech/Django-Blog-Multilingual/d8549653cc7de92d10c8fce784abc15d60a05d62/account/migrations/__init__.py -------------------------------------------------------------------------------- /account/models/__init__.py: -------------------------------------------------------------------------------- 1 | from .model_custom_user import CustomUser 2 | -------------------------------------------------------------------------------- /account/models/model_custom_user.py: -------------------------------------------------------------------------------- 1 | from django.contrib.auth.models import AbstractUser 2 | 3 | 4 | class CustomUser(AbstractUser): 5 | pass 6 | -------------------------------------------------------------------------------- /account/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /account/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render 2 | 3 | # Create your views here. 4 | -------------------------------------------------------------------------------- /blog/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mizfa-Tech/Django-Blog-Multilingual/d8549653cc7de92d10c8fce784abc15d60a05d62/blog/__init__.py -------------------------------------------------------------------------------- /blog/admin/__init__.py: -------------------------------------------------------------------------------- 1 | from .admin_post import PostAdmin 2 | from .admin_category import CategoryAdmin 3 | -------------------------------------------------------------------------------- /blog/admin/admin_category.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from blog.models import Category 3 | from django.utils.translation import gettext_lazy as _ 4 | from modeltranslation.admin import TranslationAdmin 5 | 6 | 7 | @admin.register(Category) 8 | class CategoryAdmin(TranslationAdmin): 9 | list_display = ('title', "parent_category", 'slug', 'status', 'created_at', 'updated_at') 10 | search_fields = ('title', 'slug', 'parent_category') 11 | readonly_fields = ('created_at', 'updated_at') 12 | 13 | fieldsets = ( 14 | (_('Fa'), {'fields': ('title_fa', 'parent_category_fa', 'description_fa', 'is_active_fa')}), 15 | (_('En'), {'fields': ('title_en', 'parent_category_en', 'description_en', 'is_active_en')}), 16 | (_("Main"), {'fields': ('slug', 'thumbnail', 'thumbnail_alt')}), 17 | (_('Date'), {'fields': ('created_at', "updated_at")}), 18 | (_("SEO Information"), {'fields': ("meta_title", "meta_description")}), 19 | (_('Settings'), {'fields': ('status',)}), 20 | ) 21 | 22 | add_fieldsets = ( 23 | (_('Fa'), {'fields': ('title_fa', 'parent_category_fa', 'description_fa', 'is_active_fa')}), 24 | (_('En'), {'fields': ('title_en', 'parent_category_en', 'description_en', 'is_active_en')}), 25 | (_("Main"), {'fields': ('slug', 'thumbnail', 'thumbnail_alt')}), 26 | (_("SEO Information"), {'fields': ("meta_title", "meta_description")}), 27 | (_('Settings'), {'fields': ('status',)}), 28 | ) 29 | -------------------------------------------------------------------------------- /blog/admin/admin_post.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from django.utils.translation import gettext_lazy as _ 3 | from modeltranslation.admin import TranslationAdmin 4 | from blog.models import Post 5 | 6 | 7 | @admin.register(Post) 8 | class PostAdmin(TranslationAdmin): 9 | list_display = ('title', "author", 'slug', 'status', 'created_at', 'updated_at') 10 | search_fields = ('title', 'slug', 'author') 11 | readonly_fields = ('created_at', 'updated_at') 12 | 13 | fieldsets = ( 14 | (_('Fa'), {'fields': ('title_fa', 'category_fa', 'content_fa', 'is_active_fa')}), 15 | (_('En'), {'fields': ('title_en', 'category_en', 'content_en', 'is_active_en')}), 16 | (_("Main"), {'fields': ('thumbnail', 'thumbnail_alt', 'slug', 'author',)}), 17 | (_("Date"), {'fields': ('created_at', "updated_at")}), 18 | (_("SEO information"), {'fields': ("meta_title", "meta_description")}), 19 | (_('Settings'), {'fields': ('status',)}), 20 | ) 21 | 22 | add_fieldsets = ( 23 | (_('Fa'), {'fields': ('title_fa', 'category_fa', 'content_fa', 'is_active_fa')}), 24 | (_('En'), {'fields': ('title_en', 'category_en', 'content_en', 'is_active_en')}), 25 | (_("Main"), {'fields': ('thumbnail', 'thumbnail_alt', 'slug', 'author',)}), 26 | (_("SEO information"), {'fields': ("meta_title", "meta_description")}), 27 | (_('Settings'), {'fields': ('status',)}), 28 | ) 29 | -------------------------------------------------------------------------------- /blog/api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mizfa-Tech/Django-Blog-Multilingual/d8549653cc7de92d10c8fce784abc15d60a05d62/blog/api/__init__.py -------------------------------------------------------------------------------- /blog/api/router.py: -------------------------------------------------------------------------------- 1 | from rest_framework import routers 2 | from blog.api import viewset 3 | 4 | router = routers.DefaultRouter() 5 | router.register('category', viewset.CategoryViewSet, basename='category') 6 | router.register('', viewset.PostViewSet, basename='post') 7 | 8 | urlpatterns = router.urls 9 | -------------------------------------------------------------------------------- /blog/api/serializer/__init__.py: -------------------------------------------------------------------------------- 1 | from .serializer_list_post import ListPostSerializer 2 | from .serializer_detail_post import DetailPostSerializer 3 | from .serializer_create_update_post import CreateUpdatePostSerializer 4 | 5 | from .serializer_base_category import BaseCategorySerializer 6 | 7 | from .serializer_list_category import ListCategorySerializer 8 | from .serializer_detail_category import DetailCategorySerializer 9 | from .serializer_create_update_category import CreateUpdateCategorySerializer -------------------------------------------------------------------------------- /blog/api/serializer/serializer_base_category.py: -------------------------------------------------------------------------------- 1 | from rest_framework import serializers 2 | from blog.models import Category 3 | 4 | 5 | class BaseCategorySerializer(serializers.ModelSerializer): 6 | class Meta: 7 | model = Category 8 | fields = ( 9 | 'id', 'title', 'slug', 10 | ) 11 | read_only_fields = ('id', 'created_at', 'updated_at') 12 | -------------------------------------------------------------------------------- /blog/api/serializer/serializer_create_update_category.py: -------------------------------------------------------------------------------- 1 | from rest_framework import serializers 2 | from blog.models import Category 3 | from blog.api.serializer import BaseCategorySerializer 4 | 5 | 6 | class CreateUpdateCategorySerializer(serializers.ModelSerializer): 7 | class Meta: 8 | model = Category 9 | fields = ( 10 | 'id', 'title', 'slug', 'description', 'thumbnail', 'thumbnail_alt', 'created_at', 'updated_at', 11 | 'parent_category', 'status', 12 | 13 | ) 14 | read_only_fields = ('id', 'created_at', 'updated_at','status') 15 | -------------------------------------------------------------------------------- /blog/api/serializer/serializer_create_update_post.py: -------------------------------------------------------------------------------- 1 | from rest_framework import serializers 2 | from blog.models import Post 3 | from account.api.serializer import BaseUserSerializer 4 | 5 | 6 | class CreateUpdatePostSerializer(serializers.ModelSerializer): 7 | class Meta: 8 | model = Post 9 | fields = ( 10 | 'title', 'slug', 'content', 'thumbnail', 'thumbnail_alt', 'author', 'category', 11 | ) 12 | -------------------------------------------------------------------------------- /blog/api/serializer/serializer_detail_category.py: -------------------------------------------------------------------------------- 1 | from rest_framework import serializers 2 | from blog.models import Category 3 | from blog.api.serializer import BaseCategorySerializer 4 | 5 | 6 | class DetailCategorySerializer(serializers.ModelSerializer): 7 | parent_category = BaseCategorySerializer(read_only=True) 8 | 9 | class Meta: 10 | model = Category 11 | fields = ( 12 | 'id', 'title', 'slug', 'description', 'thumbnail', 'thumbnail_alt', 'created_at', 'updated_at', 13 | 'parent_category', 'status', 14 | 15 | ) 16 | read_only_fields = ('id', 'created_at', 'updated_at') 17 | -------------------------------------------------------------------------------- /blog/api/serializer/serializer_detail_post.py: -------------------------------------------------------------------------------- 1 | from rest_framework import serializers 2 | 3 | from blog.api.serializer.serializer_base_category import BaseCategorySerializer 4 | from blog.models import Post 5 | from account.api.serializer import BaseUserSerializer 6 | 7 | 8 | class DetailPostSerializer(serializers.ModelSerializer): 9 | author = BaseUserSerializer(read_only=True) 10 | category = BaseCategorySerializer(read_only=True) 11 | 12 | class Meta: 13 | model = Post 14 | fields = ( 15 | 'id', 'title', 'slug', 'content', 'thumbnail', 'thumbnail_alt', 16 | 'status', 'author', 'category', 'created_at', 'updated_at' 17 | ) 18 | read_only_fields = ('id', 'created_at', 'updated_at') 19 | -------------------------------------------------------------------------------- /blog/api/serializer/serializer_list_category.py: -------------------------------------------------------------------------------- 1 | from rest_framework import serializers 2 | from blog.models import Category 3 | from blog.api.serializer import BaseCategorySerializer 4 | 5 | 6 | class ListCategorySerializer(serializers.ModelSerializer): 7 | parent_category = BaseCategorySerializer(read_only=True) 8 | 9 | class Meta: 10 | model = Category 11 | fields = ( 12 | 'id', 'title', 'slug', 'thumbnail', 'thumbnail_alt', 'created_at', 'updated_at', 'parent_category' 13 | ) 14 | read_only_fields = ('id', 'created_at', 'updated_at') 15 | -------------------------------------------------------------------------------- /blog/api/serializer/serializer_list_post.py: -------------------------------------------------------------------------------- 1 | from rest_framework import serializers 2 | from blog.models import Post 3 | from account.api.serializer import BaseUserSerializer 4 | from blog.api.serializer.serializer_base_category import BaseCategorySerializer 5 | 6 | 7 | class ListPostSerializer(serializers.ModelSerializer): 8 | author = BaseUserSerializer(read_only=True) 9 | category = BaseCategorySerializer(read_only=True) 10 | 11 | class Meta: 12 | model = Post 13 | fields = ( 14 | 'id', 'title', 'slug', 'thumbnail', 'thumbnail_alt', 15 | 'status', 'author', 'category', 'created_at', 'updated_at' 16 | ) 17 | read_only_fields = ('id', 'created_at', 'updated_at') 18 | -------------------------------------------------------------------------------- /blog/api/viewset/__init__.py: -------------------------------------------------------------------------------- 1 | from .viewset_post import PostViewSet 2 | from .viewset_category import CategoryViewSet 3 | -------------------------------------------------------------------------------- /blog/api/viewset/viewset_category.py: -------------------------------------------------------------------------------- 1 | from django_filters.rest_framework import DjangoFilterBackend 2 | from rest_framework import viewsets, permissions, filters 3 | from blog.models import Category 4 | from blog.api.serializer import ListCategorySerializer, DetailCategorySerializer, CreateUpdateCategorySerializer 5 | 6 | 7 | class CategoryViewSet(viewsets.ModelViewSet): 8 | model = Category 9 | serializer_class = DetailCategorySerializer 10 | lookup_field = 'pk' 11 | permission_classes = [permissions.IsAuthenticatedOrReadOnly] 12 | 13 | filter_backends = [DjangoFilterBackend, filters.SearchFilter, filters.OrderingFilter] 14 | filterset_fields = ['title', 'slug', 'parent_category', ] 15 | search_fields = ['title', 'slug', 'parent_category', ] 16 | 17 | def get_queryset(self): 18 | query = self.model.objects.all() 19 | return query 20 | 21 | def get_serializer_class(self): 22 | if self.action == 'list': 23 | return ListCategorySerializer 24 | elif self.action in ['create', 'update', 'partial-update']: 25 | return CreateUpdateCategorySerializer 26 | return self.serializer_class 27 | -------------------------------------------------------------------------------- /blog/api/viewset/viewset_post.py: -------------------------------------------------------------------------------- 1 | from rest_framework import viewsets, permissions, filters 2 | from django_filters.rest_framework import DjangoFilterBackend 3 | 4 | from blog.models import Post 5 | from blog.api.serializer import ListPostSerializer, DetailPostSerializer, CreateUpdatePostSerializer 6 | 7 | 8 | class PostViewSet(viewsets.ModelViewSet): 9 | model = Post 10 | lookup_field = 'pk' 11 | 12 | serializer_class = DetailPostSerializer 13 | permission_classes = [permissions.IsAuthenticatedOrReadOnly] 14 | 15 | filter_backends = [DjangoFilterBackend, filters.SearchFilter, filters.OrderingFilter] 16 | filterset_fields = ['title', 'category__title', 'author__username', 'author__email', 'slug', 'category__slug'] 17 | search_fields = ['title', 'category__title', 'author__username', 'author__email', 'slug', 'category__slug'] 18 | 19 | def get_queryset(self): 20 | queryset = Post.objects.all() 21 | return queryset 22 | 23 | def get_serializer_class(self): 24 | if self.action == 'list': 25 | return ListPostSerializer 26 | elif self.action == ['create', 'update', 'partial-update']: 27 | return CreateUpdatePostSerializer 28 | return self.serializer_class 29 | 30 | def perform_create(self, serializer): 31 | serializer.save(author=self.request.user) 32 | -------------------------------------------------------------------------------- /blog/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class BlogConfig(AppConfig): 5 | default_auto_field = 'django.db.models.BigAutoField' 6 | name = 'blog' 7 | -------------------------------------------------------------------------------- /blog/forms/__init__.py: -------------------------------------------------------------------------------- 1 | from .form_create_update_post import CreateUpdatePostForm 2 | -------------------------------------------------------------------------------- /blog/forms/form_create_update_post.py: -------------------------------------------------------------------------------- 1 | from blog.models import Post 2 | from modeltranslation.forms import TranslationModelForm 3 | 4 | 5 | class CreateUpdatePostForm(TranslationModelForm): 6 | class Meta: 7 | model = Post 8 | fields = '__all__' 9 | -------------------------------------------------------------------------------- /blog/migrations/0001_initial.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 4.1.2 on 2022-10-29 14:24 2 | 3 | import ckeditor_uploader.fields 4 | from django.conf import settings 5 | from django.db import migrations, models 6 | import django.db.models.deletion 7 | import django_jalali.db.models 8 | 9 | 10 | class Migration(migrations.Migration): 11 | 12 | initial = True 13 | 14 | dependencies = [ 15 | migrations.swappable_dependency(settings.AUTH_USER_MODEL), 16 | ] 17 | 18 | operations = [ 19 | migrations.CreateModel( 20 | name='Category', 21 | fields=[ 22 | ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 23 | ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='created at')), 24 | ('updated_at', models.DateTimeField(auto_now=True, verbose_name='updated at')), 25 | ('created_at_jalali', django_jalali.db.models.jDateTimeField(auto_now_add=True, verbose_name='created at jalali')), 26 | ('updated_at_jalali', django_jalali.db.models.jDateTimeField(auto_now=True, verbose_name='updated at jalali')), 27 | ('meta_title', models.CharField(blank=True, max_length=320, null=True, verbose_name='meta title')), 28 | ('meta_description', ckeditor_uploader.fields.RichTextUploadingField(blank=True, null=True, verbose_name='meta description')), 29 | ('status', models.CharField(choices=[('PU', 'Publish'), ('IN', 'Inriview'), ('PE', 'Pending')], default='PE', max_length=2, verbose_name='status')), 30 | ('title', models.CharField(max_length=350, verbose_name='title')), 31 | ('description', ckeditor_uploader.fields.RichTextUploadingField(blank=True, null=True, verbose_name='description')), 32 | ('slug', models.SlugField(blank=True, unique=True, verbose_name='slug')), 33 | ('thumbnail', models.ImageField(blank=True, null=True, upload_to='taxonomy/thumbnails/2022/10', verbose_name='thumbnail')), 34 | ('thumbnail_alt', models.CharField(blank=True, max_length=350, verbose_name='thumbnail alt')), 35 | ('parent_category', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='categories', to='blog.category', verbose_name='parent category')), 36 | ], 37 | options={ 38 | 'verbose_name': 'Category', 39 | 'verbose_name_plural': 'Categories', 40 | }, 41 | ), 42 | migrations.CreateModel( 43 | name='Post', 44 | fields=[ 45 | ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 46 | ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='created at')), 47 | ('updated_at', models.DateTimeField(auto_now=True, verbose_name='updated at')), 48 | ('created_at_jalali', django_jalali.db.models.jDateTimeField(auto_now_add=True, verbose_name='created at jalali')), 49 | ('updated_at_jalali', django_jalali.db.models.jDateTimeField(auto_now=True, verbose_name='updated at jalali')), 50 | ('meta_title', models.CharField(blank=True, max_length=320, null=True, verbose_name='meta title')), 51 | ('meta_description', ckeditor_uploader.fields.RichTextUploadingField(blank=True, null=True, verbose_name='meta description')), 52 | ('status', models.CharField(choices=[('PU', 'Publish'), ('IN', 'Inriview'), ('PE', 'Pending')], default='PE', max_length=2, verbose_name='status')), 53 | ('title', models.CharField(max_length=350, verbose_name='title')), 54 | ('content', ckeditor_uploader.fields.RichTextUploadingField(verbose_name='content')), 55 | ('slug', models.SlugField(blank=True, unique=True, verbose_name='slug')), 56 | ('thumbnail', models.ImageField(blank=True, null=True, upload_to='thumbnails/2022/10', verbose_name='thumbnail')), 57 | ('thumbnail_alt', models.CharField(blank=True, max_length=350, verbose_name='thumbnail alt')), 58 | ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='%(class)s_posts', to=settings.AUTH_USER_MODEL, verbose_name='author')), 59 | ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='posts', to='blog.category', verbose_name='category')), 60 | ], 61 | options={ 62 | 'verbose_name': 'Post', 63 | 'verbose_name_plural': 'Posts', 64 | }, 65 | ), 66 | ] 67 | -------------------------------------------------------------------------------- /blog/migrations/0002_post_author_en_post_author_fa_post_category_en_and_more.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 4.1.2 on 2022-10-30 07:08 2 | 3 | import ckeditor_uploader.fields 4 | from django.conf import settings 5 | from django.db import migrations, models 6 | import django.db.models.deletion 7 | import django_jalali.db.models 8 | 9 | 10 | class Migration(migrations.Migration): 11 | 12 | dependencies = [ 13 | migrations.swappable_dependency(settings.AUTH_USER_MODEL), 14 | ('blog', '0001_initial'), 15 | ] 16 | 17 | operations = [ 18 | migrations.AddField( 19 | model_name='post', 20 | name='author_en', 21 | field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)s_posts', to=settings.AUTH_USER_MODEL, verbose_name='author'), 22 | ), 23 | migrations.AddField( 24 | model_name='post', 25 | name='author_fa', 26 | field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)s_posts', to=settings.AUTH_USER_MODEL, verbose_name='author'), 27 | ), 28 | migrations.AddField( 29 | model_name='post', 30 | name='category_en', 31 | field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='posts', to='blog.category', verbose_name='category'), 32 | ), 33 | migrations.AddField( 34 | model_name='post', 35 | name='category_fa', 36 | field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='posts', to='blog.category', verbose_name='category'), 37 | ), 38 | migrations.AddField( 39 | model_name='post', 40 | name='content_en', 41 | field=ckeditor_uploader.fields.RichTextUploadingField(null=True, verbose_name='content'), 42 | ), 43 | migrations.AddField( 44 | model_name='post', 45 | name='content_fa', 46 | field=ckeditor_uploader.fields.RichTextUploadingField(null=True, verbose_name='content'), 47 | ), 48 | migrations.AddField( 49 | model_name='post', 50 | name='created_at_en', 51 | field=models.DateTimeField(auto_now_add=True, null=True, verbose_name='created at'), 52 | ), 53 | migrations.AddField( 54 | model_name='post', 55 | name='created_at_fa', 56 | field=models.DateTimeField(auto_now_add=True, null=True, verbose_name='created at'), 57 | ), 58 | migrations.AddField( 59 | model_name='post', 60 | name='created_at_jalali_en', 61 | field=django_jalali.db.models.jDateTimeField(auto_now_add=True, null=True, verbose_name='created at jalali'), 62 | ), 63 | migrations.AddField( 64 | model_name='post', 65 | name='created_at_jalali_fa', 66 | field=django_jalali.db.models.jDateTimeField(auto_now_add=True, null=True, verbose_name='created at jalali'), 67 | ), 68 | migrations.AddField( 69 | model_name='post', 70 | name='meta_description_en', 71 | field=ckeditor_uploader.fields.RichTextUploadingField(blank=True, null=True, verbose_name='meta description'), 72 | ), 73 | migrations.AddField( 74 | model_name='post', 75 | name='meta_description_fa', 76 | field=ckeditor_uploader.fields.RichTextUploadingField(blank=True, null=True, verbose_name='meta description'), 77 | ), 78 | migrations.AddField( 79 | model_name='post', 80 | name='meta_title_en', 81 | field=models.CharField(blank=True, max_length=320, null=True, verbose_name='meta title'), 82 | ), 83 | migrations.AddField( 84 | model_name='post', 85 | name='meta_title_fa', 86 | field=models.CharField(blank=True, max_length=320, null=True, verbose_name='meta title'), 87 | ), 88 | migrations.AddField( 89 | model_name='post', 90 | name='slug_en', 91 | field=models.SlugField(blank=True, null=True, unique=True, verbose_name='slug'), 92 | ), 93 | migrations.AddField( 94 | model_name='post', 95 | name='slug_fa', 96 | field=models.SlugField(blank=True, null=True, unique=True, verbose_name='slug'), 97 | ), 98 | migrations.AddField( 99 | model_name='post', 100 | name='status_en', 101 | field=models.CharField(choices=[('PU', 'Publish'), ('IN', 'Inriview'), ('PE', 'Pending')], default='PE', max_length=2, null=True, verbose_name='status'), 102 | ), 103 | migrations.AddField( 104 | model_name='post', 105 | name='status_fa', 106 | field=models.CharField(choices=[('PU', 'Publish'), ('IN', 'Inriview'), ('PE', 'Pending')], default='PE', max_length=2, null=True, verbose_name='status'), 107 | ), 108 | migrations.AddField( 109 | model_name='post', 110 | name='thumbnail_alt_en', 111 | field=models.CharField(blank=True, max_length=350, null=True, verbose_name='thumbnail alt'), 112 | ), 113 | migrations.AddField( 114 | model_name='post', 115 | name='thumbnail_alt_fa', 116 | field=models.CharField(blank=True, max_length=350, null=True, verbose_name='thumbnail alt'), 117 | ), 118 | migrations.AddField( 119 | model_name='post', 120 | name='thumbnail_en', 121 | field=models.ImageField(blank=True, null=True, upload_to='thumbnails/2022/10', verbose_name='thumbnail'), 122 | ), 123 | migrations.AddField( 124 | model_name='post', 125 | name='thumbnail_fa', 126 | field=models.ImageField(blank=True, null=True, upload_to='thumbnails/2022/10', verbose_name='thumbnail'), 127 | ), 128 | migrations.AddField( 129 | model_name='post', 130 | name='title_en', 131 | field=models.CharField(max_length=350, null=True, verbose_name='title'), 132 | ), 133 | migrations.AddField( 134 | model_name='post', 135 | name='title_fa', 136 | field=models.CharField(max_length=350, null=True, verbose_name='title'), 137 | ), 138 | migrations.AddField( 139 | model_name='post', 140 | name='updated_at_en', 141 | field=models.DateTimeField(auto_now=True, null=True, verbose_name='updated at'), 142 | ), 143 | migrations.AddField( 144 | model_name='post', 145 | name='updated_at_fa', 146 | field=models.DateTimeField(auto_now=True, null=True, verbose_name='updated at'), 147 | ), 148 | migrations.AddField( 149 | model_name='post', 150 | name='updated_at_jalali_en', 151 | field=django_jalali.db.models.jDateTimeField(auto_now=True, null=True, verbose_name='updated at jalali'), 152 | ), 153 | migrations.AddField( 154 | model_name='post', 155 | name='updated_at_jalali_fa', 156 | field=django_jalali.db.models.jDateTimeField(auto_now=True, null=True, verbose_name='updated at jalali'), 157 | ), 158 | ] 159 | -------------------------------------------------------------------------------- /blog/migrations/0003_remove_post_author_en_remove_post_author_fa_and_more.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 4.1.2 on 2022-10-30 11:36 2 | 3 | from django.db import migrations 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('blog', '0002_post_author_en_post_author_fa_post_category_en_and_more'), 10 | ] 11 | 12 | operations = [ 13 | migrations.RemoveField( 14 | model_name='post', 15 | name='author_en', 16 | ), 17 | migrations.RemoveField( 18 | model_name='post', 19 | name='author_fa', 20 | ), 21 | migrations.RemoveField( 22 | model_name='post', 23 | name='created_at_en', 24 | ), 25 | migrations.RemoveField( 26 | model_name='post', 27 | name='created_at_fa', 28 | ), 29 | migrations.RemoveField( 30 | model_name='post', 31 | name='created_at_jalali_en', 32 | ), 33 | migrations.RemoveField( 34 | model_name='post', 35 | name='created_at_jalali_fa', 36 | ), 37 | migrations.RemoveField( 38 | model_name='post', 39 | name='meta_description_en', 40 | ), 41 | migrations.RemoveField( 42 | model_name='post', 43 | name='meta_description_fa', 44 | ), 45 | migrations.RemoveField( 46 | model_name='post', 47 | name='meta_title_en', 48 | ), 49 | migrations.RemoveField( 50 | model_name='post', 51 | name='meta_title_fa', 52 | ), 53 | migrations.RemoveField( 54 | model_name='post', 55 | name='slug_en', 56 | ), 57 | migrations.RemoveField( 58 | model_name='post', 59 | name='slug_fa', 60 | ), 61 | migrations.RemoveField( 62 | model_name='post', 63 | name='thumbnail_alt_en', 64 | ), 65 | migrations.RemoveField( 66 | model_name='post', 67 | name='thumbnail_alt_fa', 68 | ), 69 | migrations.RemoveField( 70 | model_name='post', 71 | name='thumbnail_en', 72 | ), 73 | migrations.RemoveField( 74 | model_name='post', 75 | name='thumbnail_fa', 76 | ), 77 | migrations.RemoveField( 78 | model_name='post', 79 | name='updated_at_en', 80 | ), 81 | migrations.RemoveField( 82 | model_name='post', 83 | name='updated_at_fa', 84 | ), 85 | migrations.RemoveField( 86 | model_name='post', 87 | name='updated_at_jalali_en', 88 | ), 89 | migrations.RemoveField( 90 | model_name='post', 91 | name='updated_at_jalali_fa', 92 | ), 93 | ] 94 | -------------------------------------------------------------------------------- /blog/migrations/0004_remove_post_status_en_remove_post_status_fa.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 4.1.2 on 2022-10-30 12:04 2 | 3 | from django.db import migrations 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('blog', '0003_remove_post_author_en_remove_post_author_fa_and_more'), 10 | ] 11 | 12 | operations = [ 13 | migrations.RemoveField( 14 | model_name='post', 15 | name='status_en', 16 | ), 17 | migrations.RemoveField( 18 | model_name='post', 19 | name='status_fa', 20 | ), 21 | ] 22 | -------------------------------------------------------------------------------- /blog/migrations/0005_category_description_en_category_description_fa_and_more.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 4.1.2 on 2022-10-30 12:15 2 | 3 | import ckeditor_uploader.fields 4 | from django.db import migrations, models 5 | import django.db.models.deletion 6 | 7 | 8 | class Migration(migrations.Migration): 9 | 10 | dependencies = [ 11 | ('blog', '0004_remove_post_status_en_remove_post_status_fa'), 12 | ] 13 | 14 | operations = [ 15 | migrations.AddField( 16 | model_name='category', 17 | name='description_en', 18 | field=ckeditor_uploader.fields.RichTextUploadingField(blank=True, null=True, verbose_name='description'), 19 | ), 20 | migrations.AddField( 21 | model_name='category', 22 | name='description_fa', 23 | field=ckeditor_uploader.fields.RichTextUploadingField(blank=True, null=True, verbose_name='description'), 24 | ), 25 | migrations.AddField( 26 | model_name='category', 27 | name='parent_category_en', 28 | field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='categories', to='blog.category', verbose_name='parent category'), 29 | ), 30 | migrations.AddField( 31 | model_name='category', 32 | name='parent_category_fa', 33 | field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='categories', to='blog.category', verbose_name='parent category'), 34 | ), 35 | migrations.AddField( 36 | model_name='category', 37 | name='title_en', 38 | field=models.CharField(max_length=350, null=True, verbose_name='title'), 39 | ), 40 | migrations.AddField( 41 | model_name='category', 42 | name='title_fa', 43 | field=models.CharField(max_length=350, null=True, verbose_name='title'), 44 | ), 45 | ] 46 | -------------------------------------------------------------------------------- /blog/migrations/0006_category_is_active_post_is_active_and_more.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 4.1.2 on 2022-11-01 12:17 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('blog', '0005_category_description_en_category_description_fa_and_more'), 10 | ] 11 | 12 | operations = [ 13 | migrations.AddField( 14 | model_name='category', 15 | name='is_active', 16 | field=models.BooleanField(default=False, verbose_name='is active'), 17 | ), 18 | migrations.AddField( 19 | model_name='post', 20 | name='is_active', 21 | field=models.BooleanField(default=False, verbose_name='is active'), 22 | ), 23 | migrations.AlterField( 24 | model_name='category', 25 | name='thumbnail', 26 | field=models.ImageField(blank=True, null=True, upload_to='taxonomy/thumbnails/2022/11', verbose_name='thumbnail'), 27 | ), 28 | migrations.AlterField( 29 | model_name='post', 30 | name='thumbnail', 31 | field=models.ImageField(blank=True, null=True, upload_to='thumbnails/2022/11', verbose_name='thumbnail'), 32 | ), 33 | ] 34 | -------------------------------------------------------------------------------- /blog/migrations/0007_category_is_active_en_category_is_active_fa_and_more.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 4.1.2 on 2022-11-01 12:18 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('blog', '0006_category_is_active_post_is_active_and_more'), 10 | ] 11 | 12 | operations = [ 13 | migrations.AddField( 14 | model_name='category', 15 | name='is_active_en', 16 | field=models.BooleanField(default=False, verbose_name='is active'), 17 | ), 18 | migrations.AddField( 19 | model_name='category', 20 | name='is_active_fa', 21 | field=models.BooleanField(default=False, verbose_name='is active'), 22 | ), 23 | migrations.AddField( 24 | model_name='post', 25 | name='is_active_en', 26 | field=models.BooleanField(default=False, verbose_name='is active'), 27 | ), 28 | migrations.AddField( 29 | model_name='post', 30 | name='is_active_fa', 31 | field=models.BooleanField(default=False, verbose_name='is active'), 32 | ), 33 | ] 34 | -------------------------------------------------------------------------------- /blog/migrations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mizfa-Tech/Django-Blog-Multilingual/d8549653cc7de92d10c8fce784abc15d60a05d62/blog/migrations/__init__.py -------------------------------------------------------------------------------- /blog/models/__init__.py: -------------------------------------------------------------------------------- 1 | from .model_category import Category 2 | from .model_post import Post 3 | -------------------------------------------------------------------------------- /blog/models/model_category.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | from django.db.models.signals import pre_save 3 | from django.dispatch import receiver 4 | from django.utils.translation import gettext_lazy as _ 5 | 6 | from utils.general.models import DateBasic 7 | from utils.general.models import Seo 8 | from utils.general.models import Taxonomy 9 | from utils.general.models import Status 10 | from utils.general.models import LanguageStatus 11 | from utils.utile.unique_slug_generator import unique_slug_generator 12 | 13 | 14 | class Category(Seo, Taxonomy, DateBasic, Status, LanguageStatus): 15 | class Meta: 16 | verbose_name = _('Category') 17 | verbose_name_plural = _('Categories') 18 | 19 | parent_category = models.ForeignKey('self', on_delete=models.CASCADE, related_name='categories', 20 | verbose_name=_('parent category'), blank=True, null=True) 21 | 22 | def __str__(self): 23 | return self.title 24 | 25 | 26 | @receiver(pre_save, sender=Category) 27 | def base_post_pre_save_receiver(sender, instance, *args, **kwargs): 28 | if not instance.slug: 29 | instance.slug = unique_slug_generator(instance) 30 | -------------------------------------------------------------------------------- /blog/models/model_post.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | from django.urls import reverse 3 | from django.utils.translation import gettext_lazy as _ 4 | from django.db.models.signals import pre_save 5 | from django.dispatch import receiver 6 | 7 | from blog.models import Category 8 | from utils.general.models import Seo, Status, BasicPost, DateBasic,LanguageStatus 9 | from utils.utile.unique_slug_generator import unique_slug_generator 10 | 11 | 12 | class Post(Seo, DateBasic, BasicPost, Status,LanguageStatus): 13 | class Meta: 14 | verbose_name = _('Post') 15 | verbose_name_plural = _('Posts') 16 | 17 | category = models.ForeignKey(Category, on_delete=models.CASCADE, verbose_name=_('category'), related_name='posts') 18 | 19 | def __str__(self): 20 | return self.title 21 | 22 | def get_absolute_url(self): 23 | return reverse('blog:detail', kwargs={'pk': self.pk}) 24 | 25 | 26 | @receiver(pre_save, sender=Post) 27 | def base_post_pre_save_receiver(sender, instance, *args, **kwargs): 28 | if not instance.slug: 29 | instance.slug = unique_slug_generator(instance) 30 | -------------------------------------------------------------------------------- /blog/templates/blog/create_Update_post.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | {% load static %} 3 | {% load i18n %} 4 | {% load widget_tweaks %} 5 | 6 | {% block title %}{% endblock %} 7 | {% block extra_style %}{% endblock %} 8 | 9 | 10 | {% block main %} 11 | {{ view_title }} 12 |
13 | {% csrf_token %} 14 | 15 | {% for hidden in form.hidden_fields %} 16 | {{ hidden }} 17 | {% endfor %} 18 | 19 | {% for field in form.visible_fields %} 20 |
21 | 22 | {{ field|add_class:'form-control' }} 23 | {% for error in field.errors %} 24 | {{ error }} 25 | {% endfor %} 26 |
27 | {% endfor %} 28 | 29 |
30 | 33 | Cancel 34 |
35 |
36 | {% endblock %} 37 | 38 | 39 | {% block extra_js %}{% endblock %} -------------------------------------------------------------------------------- /blog/templates/blog/detail_post.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | {% load i18n %} 3 | 4 | {% block main %} 5 |
6 |

{{ post.title }}
7 | {% trans 'Date' %} : {{ post.created_at }} 8 |

9 | 10 | {% trans 'Author' %} : {{ post.author }} 11 | {% trans 'Category' %} 12 | : {{ post.category.title }} 13 | 14 | {# {{ post.thumbnail_alt }}#} 15 |

{{ post.content|safe }}

16 | 17 |
18 | 19 | {% endblock %} -------------------------------------------------------------------------------- /blog/templates/blog/list_post.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | {% load i18n %} 3 | 4 | 5 | {% block main %} 6 | {% for post in posts %} 7 |
8 |

{{ post.title }}
9 | {% trans 'Date' %} : {{ post.created_at }} 10 |

11 |

{{ post.content|safe|truncatewords:80 }}

12 | {% trans 'Category' %} 13 | : {{ post.category.title }} 14 |
15 | 16 | {% empty %} 17 |

{% trans 'Database is empty' %}

18 | {% endfor %} 19 | 20 | {% endblock %} -------------------------------------------------------------------------------- /blog/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /blog/translation.py: -------------------------------------------------------------------------------- 1 | from modeltranslation.translator import register, TranslationOptions 2 | from blog.models import Post, Category 3 | 4 | 5 | @register(Category) 6 | class CategoryTranslationOptions(TranslationOptions): 7 | fields = ("title", "description", 'parent_category', 'is_active') 8 | 9 | 10 | @register(Post) 11 | class PostTranslationOptions(TranslationOptions): 12 | fields = ("title", "content", 'category','is_active') 13 | -------------------------------------------------------------------------------- /blog/urls.py: -------------------------------------------------------------------------------- 1 | from django.urls import path, include 2 | from blog import views 3 | 4 | app_name = 'blog' 5 | urlpatterns = [ 6 | path('', views.PostListView.as_view(), name='list'), 7 | path('create/', views.CreatePostView.as_view(), name='create'), 8 | path('/', views.PostDetailView.as_view(), name='detail'), 9 | path('update//', views.UpdatePostView.as_view(), name='update'), 10 | ] 11 | -------------------------------------------------------------------------------- /blog/urls_api.py: -------------------------------------------------------------------------------- 1 | from django.urls import path, include 2 | 3 | app_name = 'blog_api' 4 | urlpatterns = [ 5 | path('', include('blog.api.router')) 6 | ] 7 | -------------------------------------------------------------------------------- /blog/views/__init__.py: -------------------------------------------------------------------------------- 1 | from .view_list_post import PostListView 2 | from .view_detail_post import PostDetailView 3 | from .view_create_post import CreatePostView 4 | from .view_update_post import UpdatePostView 5 | -------------------------------------------------------------------------------- /blog/views/view_create_post.py: -------------------------------------------------------------------------------- 1 | from django.views import generic 2 | from blog.models import Post 3 | from django.utils.translation import gettext as _ 4 | from blog.forms import CreateUpdatePostForm 5 | 6 | 7 | class CreatePostView(generic.CreateView): 8 | model = Post 9 | form_class = CreateUpdatePostForm 10 | template_name = 'blog/create_Update_post.html' 11 | 12 | def get_context_data(self, **kwargs): 13 | context = super().get_context_data(**kwargs) 14 | context['view_title'] = _('create post') 15 | return context 16 | 17 | def get_success_url(self): 18 | pass 19 | -------------------------------------------------------------------------------- /blog/views/view_detail_post.py: -------------------------------------------------------------------------------- 1 | from django.views import generic 2 | from blog.models import Post 3 | 4 | 5 | class PostDetailView(generic.DetailView): 6 | model = Post 7 | template_name = 'blog/detail_post.html' 8 | context_object_name = "post" 9 | -------------------------------------------------------------------------------- /blog/views/view_list_post.py: -------------------------------------------------------------------------------- 1 | from django.views import generic 2 | from blog.models import Post 3 | 4 | 5 | class PostListView(generic.ListView): 6 | model = Post 7 | template_name = 'blog/list_post.html' 8 | context_object_name = "posts" 9 | 10 | def get_queryset(self): 11 | query = self.model.objects.filter(is_active=True) 12 | return query 13 | -------------------------------------------------------------------------------- /blog/views/view_update_post.py: -------------------------------------------------------------------------------- 1 | from django.views import generic 2 | from blog.models import Post 3 | from django.utils.translation import gettext as _ 4 | from blog.forms import CreateUpdatePostForm 5 | 6 | 7 | class UpdatePostView(generic.UpdateView): 8 | model = Post 9 | form_class = CreateUpdatePostForm 10 | template_name = 'blog/create_Update_post.html' 11 | 12 | def get_context_data(self, **kwargs): 13 | context = super().get_context_data(**kwargs) 14 | context['view_title'] = _('update post') 15 | return context 16 | 17 | def get_success_url(self): 18 | pass 19 | -------------------------------------------------------------------------------- /core/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mizfa-Tech/Django-Blog-Multilingual/d8549653cc7de92d10c8fce784abc15d60a05d62/core/__init__.py -------------------------------------------------------------------------------- /core/asgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | ASGI config for core project. 3 | 4 | It exposes the ASGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/4.1/howto/deployment/asgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.asgi import get_asgi_application 13 | 14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings') 15 | 16 | application = get_asgi_application() 17 | -------------------------------------------------------------------------------- /core/settings.py: -------------------------------------------------------------------------------- 1 | import os 2 | import environ 3 | from pathlib import Path 4 | from django.utils.translation import gettext_lazy as _ 5 | 6 | env = environ.Env(DEBUG=(bool, False)) 7 | 8 | # Build paths inside the project like this: BASE_DIR / 'subdir'. 9 | BASE_DIR = Path(__file__).resolve().parent.parent 10 | environ.Env.read_env(os.path.join(BASE_DIR, '.env')) 11 | 12 | # Quick-start development settings - unsuitable for production 13 | # See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/ 14 | 15 | # SECURITY WARNING: keep the secret key used in production secret! 16 | SECRET_KEY = env('SECRET_KEY') 17 | 18 | # SECURITY WARNING: don't run with debug turned on in production! 19 | DEBUG = True 20 | 21 | ALLOWED_HOSTS = [] 22 | 23 | # Application definition 24 | 25 | INSTALLED_APPS = [ 26 | 'modeltranslation', # for Translation Model (3rd party package) 27 | 'django.contrib.admin', 28 | 'django.contrib.auth', 29 | 'django.contrib.contenttypes', 30 | 'django.contrib.sessions', 31 | 'django.contrib.messages', 32 | 'django.contrib.staticfiles', 33 | 34 | # 3rd party 35 | 'jquery', 36 | 'rest_framework', 37 | 'drf_spectacular', 38 | 'drf_spectacular_sidecar', 39 | 'ckeditor', 40 | 'ckeditor_uploader', 41 | 'rosetta', 42 | 'django_filters', 43 | 'widget_tweaks', 44 | 45 | # my app 46 | 'account.apps.AccountConfig', 47 | 'blog.apps.BlogConfig', 48 | 'utils.apps.UtilsConfig', 49 | 50 | ] 51 | 52 | MIDDLEWARE = [ 53 | 'django.middleware.security.SecurityMiddleware', 54 | 'django.contrib.sessions.middleware.SessionMiddleware', 55 | 'django.middleware.locale.LocaleMiddleware', # Language config 56 | 'django.middleware.common.CommonMiddleware', 57 | 'django.middleware.csrf.CsrfViewMiddleware', 58 | 'django.contrib.auth.middleware.AuthenticationMiddleware', 59 | 'django.contrib.messages.middleware.MessageMiddleware', 60 | 'django.middleware.clickjacking.XFrameOptionsMiddleware', 61 | ] 62 | 63 | ROOT_URLCONF = 'core.urls' 64 | 65 | TEMPLATES = [ 66 | { 67 | 'BACKEND': 'django.template.backends.django.DjangoTemplates', 68 | 'DIRS': [os.path.join(BASE_DIR, 'templates')], 69 | 'APP_DIRS': True, 70 | 'OPTIONS': { 71 | 'context_processors': [ 72 | 'django.template.context_processors.debug', 73 | 'django.template.context_processors.request', 74 | 'django.contrib.auth.context_processors.auth', 75 | 'django.contrib.messages.context_processors.messages', 76 | ], 77 | 'libraries': { 78 | 'my_tags': 'utils.templatetags.change_language_tag', 79 | } 80 | }, 81 | }, 82 | ] 83 | 84 | WSGI_APPLICATION = 'core.wsgi.application' 85 | 86 | # Database 87 | # https://docs.djangoproject.com/en/4.1/ref/settings/#databases 88 | 89 | DATABASES = { 90 | 'default': { 91 | 'ENGINE': 'django.db.backends.sqlite3', 92 | 'NAME': BASE_DIR / 'db.sqlite3', 93 | } 94 | } 95 | 96 | # Password validation 97 | # https://docs.djangoproject.com/en/4.1/ref/settings/#auth-password-validators 98 | 99 | AUTH_PASSWORD_VALIDATORS = [ 100 | { 101 | 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', 102 | }, 103 | { 104 | 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', 105 | }, 106 | { 107 | 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', 108 | }, 109 | { 110 | 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', 111 | }, 112 | ] 113 | 114 | # Internationalization 115 | # https://docs.djangoproject.com/en/4.1/topics/i18n/ 116 | 117 | LANGUAGE_CODE = 'en-us' 118 | 119 | LANGUAGES = ( 120 | ('en', _('English')), 121 | ('fa', _('Persian')), 122 | ) 123 | 124 | MODELTRANSLATION_DEFAULT_LANGUAGE = 'en' 125 | 126 | LOCALE_PATHS = [ 127 | os.path.join(BASE_DIR / 'locale/', ) 128 | ] 129 | 130 | TIME_ZONE = 'UTC' 131 | 132 | USE_I18N = True 133 | 134 | USE_TZ = True 135 | 136 | # Static files (CSS, JavaScript, Images) 137 | # https://docs.djangoproject.com/en/4.1/howto/static-files/ 138 | 139 | STATIC_URL = 'static/' 140 | 141 | # Default primary key field type 142 | # https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field 143 | 144 | DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' 145 | 146 | # Config DRF 147 | REST_FRAMEWORK = { 148 | 'DEFAULT_SCHEMA_CLASS': 'drf_spectacular.openapi.AutoSchema', 149 | } 150 | 151 | # Config Swagger 152 | SPECTACULAR_SETTINGS = { 153 | 'TITLE': 'Blog Multilingual', 154 | 'DESCRIPTION': '', 155 | 'VERSION': '1.0.0', 156 | 'SERVE_INCLUDE_SCHEMA': False, 157 | 'SWAGGER_UI_DIST': 'SIDECAR', 158 | 'SWAGGER_UI_FAVICON_HREF': 'SIDECAR', 159 | 'REDOC_DIST': 'SIDECAR', 160 | } 161 | 162 | # Config User 163 | AUTH_USER_MODEL = 'account.CustomUser' 164 | 165 | # Ckeditor Config 166 | CKEDITOR_UPLOAD_PATH = 'uploads/' 167 | CKEDITOR_CONFIGS = { 168 | 'default': { 169 | 'toolbar': 'Custom', 170 | } 171 | } 172 | 173 | # Config Rosetta 174 | ROSETTA_MESSAGES_PER_PAGE = 100 175 | -------------------------------------------------------------------------------- /core/urls.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from django.urls import path, include 3 | from django.conf.urls.i18n import i18n_patterns 4 | from django.utils.translation import gettext_lazy as _ 5 | from drf_spectacular.views import SpectacularAPIView, SpectacularRedocView, SpectacularSwaggerView 6 | 7 | # ---------------------------------------------------------------------------------------------------------------------- 8 | urlpatterns_api_v1 = [ 9 | path('', include('blog.urls_api')), 10 | ] 11 | 12 | urlpatterns_app = [ 13 | path('blog/', include('blog.urls')), 14 | ] 15 | # ---------------------------------------------------------------------------------------------------------------------- 16 | urlpatterns = i18n_patterns( 17 | # URL Rosetta 18 | path('admin/rosetta/', include('rosetta.urls')), 19 | 20 | # URL Admin App 21 | path('admin/', admin.site.urls), 22 | 23 | # URL Api Apps 24 | path('api/v1/', include(urlpatterns_api_v1)), 25 | 26 | # URL Apps 27 | path('', include(urlpatterns_app)), 28 | 29 | # URL CkEditor 30 | path('ckeditor/', include('ckeditor_uploader.urls')), 31 | 32 | # URL Swagger 33 | path('api/schema/', SpectacularAPIView.as_view(), name='schema'), 34 | path('api/schema/swagger-ui/', SpectacularSwaggerView.as_view(url_name='schema'), name='swagger-ui'), 35 | path('api/schema/redoc/', SpectacularRedocView.as_view(url_name='schema'), name='redoc'), 36 | ) 37 | 38 | # -------------------------------------- Config Static ---------------------------------------------------------------- 39 | from django.conf import settings 40 | from django.conf.urls.static import static 41 | 42 | urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) 43 | urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) 44 | -------------------------------------------------------------------------------- /core/wsgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | WSGI config for core project. 3 | 4 | It exposes the WSGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/4.1/howto/deployment/wsgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.wsgi import get_wsgi_application 13 | 14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings') 15 | 16 | application = get_wsgi_application() 17 | -------------------------------------------------------------------------------- /locale/en/LC_MESSAGES/django.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | #, fuzzy 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: PACKAGE VERSION\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2022-11-01 12:21+0000\n" 12 | "PO-Revision-Date: 2022-11-01 12:22+0000\n" 13 | "Last-Translator: \n" 14 | "Language-Team: LANGUAGE \n" 15 | "Language: \n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=UTF-8\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 | "X-Translated-Using: django-rosetta 0.9.8\n" 21 | 22 | #: blog/admin/admin_category.py:14 blog/admin/admin_category.py:23 23 | #: blog/admin/admin_post.py:14 blog/admin/admin_post.py:23 24 | msgid "Fa" 25 | msgstr "Persian" 26 | 27 | #: blog/admin/admin_category.py:15 blog/admin/admin_category.py:24 28 | #: blog/admin/admin_post.py:15 blog/admin/admin_post.py:24 29 | msgid "En" 30 | msgstr "English" 31 | 32 | #: blog/admin/admin_category.py:16 blog/admin/admin_category.py:25 33 | #: blog/admin/admin_post.py:16 blog/admin/admin_post.py:25 34 | msgid "Main" 35 | msgstr "Main" 36 | 37 | #: blog/admin/admin_category.py:17 blog/admin/admin_post.py:17 38 | #: blog/templates/blog/detail_post.html:7 blog/templates/blog/list_post.html:9 39 | msgid "Date" 40 | msgstr "Date" 41 | 42 | #: blog/admin/admin_category.py:18 blog/admin/admin_category.py:26 43 | msgid "SEO Information" 44 | msgstr "SEO Information" 45 | 46 | #: blog/admin/admin_category.py:19 blog/admin/admin_category.py:27 47 | #: blog/admin/admin_post.py:19 blog/admin/admin_post.py:27 48 | msgid "Settings" 49 | msgstr "Settings" 50 | 51 | #: blog/admin/admin_post.py:18 blog/admin/admin_post.py:26 52 | msgid "SEO information" 53 | msgstr "SEO information" 54 | 55 | #: blog/models/model_category.py:16 blog/templates/blog/detail_post.html:11 56 | #: blog/templates/blog/list_post.html:12 57 | msgid "Category" 58 | msgstr "Category" 59 | 60 | #: blog/models/model_category.py:17 61 | msgid "Categories" 62 | msgstr "Categories" 63 | 64 | #: blog/models/model_category.py:20 65 | msgid "parent category" 66 | msgstr "parent category" 67 | 68 | #: blog/models/model_post.py:14 69 | msgid "Post" 70 | msgstr "Post" 71 | 72 | #: blog/models/model_post.py:15 73 | msgid "Posts" 74 | msgstr "Posts" 75 | 76 | #: blog/models/model_post.py:17 77 | msgid "category" 78 | msgstr "category" 79 | 80 | #: blog/templates/blog/detail_post.html:10 81 | msgid "Author" 82 | msgstr "author" 83 | 84 | #: blog/templates/blog/list_post.html:17 85 | msgid "Database is empty" 86 | msgstr "Database is empty" 87 | 88 | #: blog/views/view_create_post.py:14 89 | #, fuzzy 90 | #| msgid "created at" 91 | msgid "create post" 92 | msgstr "created at" 93 | 94 | #: blog/views/view_update_post.py:14 95 | #, fuzzy 96 | #| msgid "updated at" 97 | msgid "update post" 98 | msgstr "updated at" 99 | 100 | #: core/settings.py:120 101 | msgid "English" 102 | msgstr "English" 103 | 104 | #: core/settings.py:121 105 | msgid "Persian" 106 | msgstr "Persian" 107 | 108 | #: templates/base.html:22 109 | msgid "This is the title" 110 | msgstr "" 111 | 112 | #: templates/base.html:66 113 | msgid "TestDriven.io Courses" 114 | msgstr "" 115 | 116 | #: utils/general/models/model_basic_post_abstract.py:26 117 | #: utils/general/models/model_taxonomy_abstraction.py:15 118 | msgid "title" 119 | msgstr "title" 120 | 121 | #: utils/general/models/model_basic_post_abstract.py:27 122 | msgid "content" 123 | msgstr "content" 124 | 125 | #: utils/general/models/model_basic_post_abstract.py:28 126 | #: utils/general/models/model_taxonomy_abstraction.py:17 127 | msgid "slug" 128 | msgstr "slug" 129 | 130 | #: utils/general/models/model_basic_post_abstract.py:30 131 | msgid "author" 132 | msgstr "author" 133 | 134 | #: utils/general/models/model_basic_post_abstract.py:31 135 | #: utils/general/models/model_taxonomy_abstraction.py:18 136 | msgid "thumbnail" 137 | msgstr "thumbnail" 138 | 139 | #: utils/general/models/model_basic_post_abstract.py:34 140 | #: utils/general/models/model_taxonomy_abstraction.py:19 141 | msgid "thumbnail alt" 142 | msgstr "thumbnail alt" 143 | 144 | #: utils/general/models/model_date_abstract.py:10 145 | msgid "created at" 146 | msgstr "created at" 147 | 148 | #: utils/general/models/model_date_abstract.py:11 149 | msgid "updated at" 150 | msgstr "updated at" 151 | 152 | #: utils/general/models/model_date_abstract.py:13 153 | msgid "created at jalali" 154 | msgstr "created at jalali" 155 | 156 | #: utils/general/models/model_date_abstract.py:14 157 | msgid "updated at jalali" 158 | msgstr "updated at jalali" 159 | 160 | #: utils/general/models/model_seo_abstract.py:10 161 | msgid "meta title" 162 | msgstr "meta title" 163 | 164 | #: utils/general/models/model_seo_abstract.py:11 165 | msgid "meta description" 166 | msgstr "meta description" 167 | 168 | #: utils/general/models/model_status_abstract.py:10 169 | msgid "Publish" 170 | msgstr "Publish" 171 | 172 | #: utils/general/models/model_status_abstract.py:11 173 | msgid "Inriview" 174 | msgstr "Inriview" 175 | 176 | #: utils/general/models/model_status_abstract.py:12 177 | msgid "Pending" 178 | msgstr "Pending" 179 | 180 | #: utils/general/models/model_status_abstract.py:14 181 | msgid "status" 182 | msgstr "status" 183 | 184 | #: utils/general/models/model_status_language.py:9 185 | msgid "is active" 186 | msgstr "is active" 187 | 188 | #: utils/general/models/model_taxonomy_abstraction.py:16 189 | msgid "description" 190 | msgstr "description" 191 | 192 | #: venv/lib/python3.10/site-packages/ckeditor_uploader/forms.py:6 193 | msgid "Search files" 194 | msgstr "Search files" 195 | 196 | #: venv/lib/python3.10/site-packages/ckeditor_uploader/templates/ckeditor/browse.html:5 197 | msgid "Select an image to embed" 198 | msgstr "" 199 | 200 | #: venv/lib/python3.10/site-packages/ckeditor_uploader/templates/ckeditor/browse.html:27 201 | msgid "Browse for the image you want, then click 'Embed Image' to continue..." 202 | msgstr "" 203 | 204 | #: venv/lib/python3.10/site-packages/ckeditor_uploader/templates/ckeditor/browse.html:29 205 | msgid "" 206 | "No images found. Upload images using the 'Image Button' dialog's 'Upload' " 207 | "tab." 208 | msgstr "" 209 | 210 | #: venv/lib/python3.10/site-packages/ckeditor_uploader/templates/ckeditor/browse.html:50 211 | msgid "Images in: " 212 | msgstr "" 213 | 214 | #: venv/lib/python3.10/site-packages/ckeditor_uploader/templates/ckeditor/browse.html:62 215 | #: venv/lib/python3.10/site-packages/ckeditor_uploader/templates/ckeditor/browse.html:80 216 | msgid "Embed Image" 217 | msgstr "" 218 | 219 | #: venv/lib/python3.10/site-packages/ckeditor_uploader/templates/ckeditor/browse.html:146 220 | msgid "Play Slideshow" 221 | msgstr "" 222 | 223 | #: venv/lib/python3.10/site-packages/ckeditor_uploader/templates/ckeditor/browse.html:147 224 | msgid "Pause Slideshow" 225 | msgstr "" 226 | 227 | #: venv/lib/python3.10/site-packages/ckeditor_uploader/templates/ckeditor/browse.html:148 228 | msgid "‹ Previous Photo" 229 | msgstr "" 230 | 231 | #: venv/lib/python3.10/site-packages/ckeditor_uploader/templates/ckeditor/browse.html:149 232 | msgid "Next Photo ›" 233 | msgstr "" 234 | 235 | #: venv/lib/python3.10/site-packages/ckeditor_uploader/templates/ckeditor/browse.html:150 236 | msgid "Next ›" 237 | msgstr "" 238 | 239 | #: venv/lib/python3.10/site-packages/ckeditor_uploader/templates/ckeditor/browse.html:151 240 | msgid "‹ Prev" 241 | msgstr "" 242 | 243 | #: venv/lib/python3.10/site-packages/django/contrib/messages/apps.py:15 244 | msgid "Messages" 245 | msgstr "" 246 | 247 | #: venv/lib/python3.10/site-packages/django/contrib/sitemaps/apps.py:8 248 | msgid "Site Maps" 249 | msgstr "" 250 | 251 | #: venv/lib/python3.10/site-packages/django/contrib/staticfiles/apps.py:9 252 | msgid "Static Files" 253 | msgstr "" 254 | 255 | #: venv/lib/python3.10/site-packages/django/contrib/syndication/apps.py:7 256 | msgid "Syndication" 257 | msgstr "" 258 | 259 | #. Translators: String used to replace omitted page numbers in elided page 260 | #. range generated by paginators, e.g. [1, 2, '…', 5, 6, 7, '…', 9, 10]. 261 | #: venv/lib/python3.10/site-packages/django/core/paginator.py:30 262 | msgid "…" 263 | msgstr "" 264 | 265 | #: venv/lib/python3.10/site-packages/django/core/paginator.py:50 266 | msgid "That page number is not an integer" 267 | msgstr "" 268 | 269 | #: venv/lib/python3.10/site-packages/django/core/paginator.py:52 270 | msgid "That page number is less than 1" 271 | msgstr "" 272 | 273 | #: venv/lib/python3.10/site-packages/django/core/paginator.py:57 274 | msgid "That page contains no results" 275 | msgstr "" 276 | 277 | #: venv/lib/python3.10/site-packages/django/core/validators.py:22 278 | msgid "Enter a valid value." 279 | msgstr "" 280 | 281 | #: venv/lib/python3.10/site-packages/django/core/validators.py:104 282 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:751 283 | msgid "Enter a valid URL." 284 | msgstr "" 285 | 286 | #: venv/lib/python3.10/site-packages/django/core/validators.py:164 287 | msgid "Enter a valid integer." 288 | msgstr "" 289 | 290 | #: venv/lib/python3.10/site-packages/django/core/validators.py:175 291 | msgid "Enter a valid email address." 292 | msgstr "" 293 | 294 | #. Translators: "letters" means latin letters: a-z and A-Z. 295 | #: venv/lib/python3.10/site-packages/django/core/validators.py:256 296 | msgid "" 297 | "Enter a valid “slug” consisting of letters, numbers, underscores or hyphens." 298 | msgstr "" 299 | 300 | #: venv/lib/python3.10/site-packages/django/core/validators.py:264 301 | msgid "" 302 | "Enter a valid “slug” consisting of Unicode letters, numbers, underscores, or" 303 | " hyphens." 304 | msgstr "" 305 | 306 | #: venv/lib/python3.10/site-packages/django/core/validators.py:276 307 | #: venv/lib/python3.10/site-packages/django/core/validators.py:284 308 | #: venv/lib/python3.10/site-packages/django/core/validators.py:313 309 | msgid "Enter a valid IPv4 address." 310 | msgstr "" 311 | 312 | #: venv/lib/python3.10/site-packages/django/core/validators.py:293 313 | #: venv/lib/python3.10/site-packages/django/core/validators.py:314 314 | msgid "Enter a valid IPv6 address." 315 | msgstr "" 316 | 317 | #: venv/lib/python3.10/site-packages/django/core/validators.py:305 318 | #: venv/lib/python3.10/site-packages/django/core/validators.py:312 319 | msgid "Enter a valid IPv4 or IPv6 address." 320 | msgstr "" 321 | 322 | #: venv/lib/python3.10/site-packages/django/core/validators.py:348 323 | msgid "Enter only digits separated by commas." 324 | msgstr "" 325 | 326 | #: venv/lib/python3.10/site-packages/django/core/validators.py:354 327 | #, python-format 328 | msgid "Ensure this value is %(limit_value)s (it is %(show_value)s)." 329 | msgstr "" 330 | 331 | #: venv/lib/python3.10/site-packages/django/core/validators.py:389 332 | #, python-format 333 | msgid "Ensure this value is less than or equal to %(limit_value)s." 334 | msgstr "" 335 | 336 | #: venv/lib/python3.10/site-packages/django/core/validators.py:398 337 | #, python-format 338 | msgid "Ensure this value is greater than or equal to %(limit_value)s." 339 | msgstr "" 340 | 341 | #: venv/lib/python3.10/site-packages/django/core/validators.py:407 342 | #, python-format 343 | msgid "Ensure this value is a multiple of step size %(limit_value)s." 344 | msgstr "" 345 | 346 | #: venv/lib/python3.10/site-packages/django/core/validators.py:417 347 | #, python-format 348 | msgid "" 349 | "Ensure this value has at least %(limit_value)d character (it has " 350 | "%(show_value)d)." 351 | msgid_plural "" 352 | "Ensure this value has at least %(limit_value)d characters (it has " 353 | "%(show_value)d)." 354 | msgstr[0] "" 355 | msgstr[1] "" 356 | 357 | #: venv/lib/python3.10/site-packages/django/core/validators.py:435 358 | #, python-format 359 | msgid "" 360 | "Ensure this value has at most %(limit_value)d character (it has " 361 | "%(show_value)d)." 362 | msgid_plural "" 363 | "Ensure this value has at most %(limit_value)d characters (it has " 364 | "%(show_value)d)." 365 | msgstr[0] "" 366 | msgstr[1] "" 367 | 368 | #: venv/lib/python3.10/site-packages/django/core/validators.py:458 369 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:347 370 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:386 371 | msgid "Enter a number." 372 | msgstr "" 373 | 374 | #: venv/lib/python3.10/site-packages/django/core/validators.py:460 375 | #, python-format 376 | msgid "Ensure that there are no more than %(max)s digit in total." 377 | msgid_plural "Ensure that there are no more than %(max)s digits in total." 378 | msgstr[0] "" 379 | msgstr[1] "" 380 | 381 | #: venv/lib/python3.10/site-packages/django/core/validators.py:465 382 | #, python-format 383 | msgid "Ensure that there are no more than %(max)s decimal place." 384 | msgid_plural "Ensure that there are no more than %(max)s decimal places." 385 | msgstr[0] "" 386 | msgstr[1] "" 387 | 388 | #: venv/lib/python3.10/site-packages/django/core/validators.py:470 389 | #, python-format 390 | msgid "" 391 | "Ensure that there are no more than %(max)s digit before the decimal point." 392 | msgid_plural "" 393 | "Ensure that there are no more than %(max)s digits before the decimal point." 394 | msgstr[0] "" 395 | msgstr[1] "" 396 | 397 | #: venv/lib/python3.10/site-packages/django/core/validators.py:539 398 | #, python-format 399 | msgid "" 400 | "File extension “%(extension)s” is not allowed. Allowed extensions are: " 401 | "%(allowed_extensions)s." 402 | msgstr "" 403 | 404 | #: venv/lib/python3.10/site-packages/django/core/validators.py:600 405 | msgid "Null characters are not allowed." 406 | msgstr "" 407 | 408 | #: venv/lib/python3.10/site-packages/django/db/models/base.py:1401 409 | #: venv/lib/python3.10/site-packages/django/forms/models.py:899 410 | msgid "and" 411 | msgstr "" 412 | 413 | #: venv/lib/python3.10/site-packages/django/db/models/base.py:1403 414 | #, python-format 415 | msgid "%(model_name)s with this %(field_labels)s already exists." 416 | msgstr "" 417 | 418 | #: venv/lib/python3.10/site-packages/django/db/models/constraints.py:17 419 | #, python-format 420 | msgid "Constraint “%(name)s” is violated." 421 | msgstr "" 422 | 423 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:129 424 | #, python-format 425 | msgid "Value %(value)r is not a valid choice." 426 | msgstr "" 427 | 428 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:130 429 | msgid "This field cannot be null." 430 | msgstr "" 431 | 432 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:131 433 | msgid "This field cannot be blank." 434 | msgstr "" 435 | 436 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:132 437 | #, python-format 438 | msgid "%(model_name)s with this %(field_label)s already exists." 439 | msgstr "" 440 | 441 | #. Translators: The 'lookup_type' is one of 'date', 'year' or 442 | #. 'month'. Eg: "Title must be unique for pub_date year" 443 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:136 444 | #, python-format 445 | msgid "" 446 | "%(field_label)s must be unique for %(date_field_label)s %(lookup_type)s." 447 | msgstr "" 448 | 449 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:174 450 | #, python-format 451 | msgid "Field of type: %(field_type)s" 452 | msgstr "" 453 | 454 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1065 455 | #, python-format 456 | msgid "“%(value)s” value must be either True or False." 457 | msgstr "" 458 | 459 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1066 460 | #, python-format 461 | msgid "“%(value)s” value must be either True, False, or None." 462 | msgstr "" 463 | 464 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1068 465 | msgid "Boolean (Either True or False)" 466 | msgstr "" 467 | 468 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1118 469 | #, python-format 470 | msgid "String (up to %(max_length)s)" 471 | msgstr "" 472 | 473 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1222 474 | msgid "Comma-separated integers" 475 | msgstr "" 476 | 477 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1323 478 | #, python-format 479 | msgid "" 480 | "“%(value)s” value has an invalid date format. It must be in YYYY-MM-DD " 481 | "format." 482 | msgstr "" 483 | 484 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1327 485 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1462 486 | #, python-format 487 | msgid "" 488 | "“%(value)s” value has the correct format (YYYY-MM-DD) but it is an invalid " 489 | "date." 490 | msgstr "" 491 | 492 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1331 493 | #: venv/lib/python3.10/site-packages/django_jalali/db/models.py:61 494 | msgid "Date (without time)" 495 | msgstr "" 496 | 497 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1458 498 | #, python-format 499 | msgid "" 500 | "“%(value)s” value has an invalid format. It must be in YYYY-MM-DD " 501 | "HH:MM[:ss[.uuuuuu]][TZ] format." 502 | msgstr "" 503 | 504 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1466 505 | #, python-format 506 | msgid "" 507 | "“%(value)s” value has the correct format (YYYY-MM-DD " 508 | "HH:MM[:ss[.uuuuuu]][TZ]) but it is an invalid date/time." 509 | msgstr "" 510 | 511 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1471 512 | #: venv/lib/python3.10/site-packages/django_jalali/db/models.py:223 513 | msgid "Date (with time)" 514 | msgstr "" 515 | 516 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1595 517 | #, python-format 518 | msgid "“%(value)s” value must be a decimal number." 519 | msgstr "" 520 | 521 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1597 522 | msgid "Decimal number" 523 | msgstr "" 524 | 525 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1754 526 | #, python-format 527 | msgid "" 528 | "“%(value)s” value has an invalid format. It must be in [DD] " 529 | "[[HH:]MM:]ss[.uuuuuu] format." 530 | msgstr "" 531 | 532 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1758 533 | msgid "Duration" 534 | msgstr "" 535 | 536 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1810 537 | msgid "Email address" 538 | msgstr "" 539 | 540 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1835 541 | msgid "File path" 542 | msgstr "" 543 | 544 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1913 545 | #, python-format 546 | msgid "“%(value)s” value must be a float." 547 | msgstr "" 548 | 549 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1915 550 | msgid "Floating point number" 551 | msgstr "" 552 | 553 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1955 554 | #, python-format 555 | msgid "“%(value)s” value must be an integer." 556 | msgstr "" 557 | 558 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1957 559 | msgid "Integer" 560 | msgstr "" 561 | 562 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2049 563 | msgid "Big (8 byte) integer" 564 | msgstr "" 565 | 566 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2066 567 | msgid "Small integer" 568 | msgstr "" 569 | 570 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2074 571 | msgid "IPv4 address" 572 | msgstr "" 573 | 574 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2105 575 | msgid "IP address" 576 | msgstr "" 577 | 578 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2198 579 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2199 580 | #, python-format 581 | msgid "“%(value)s” value must be either None, True or False." 582 | msgstr "" 583 | 584 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2201 585 | msgid "Boolean (Either True, False or None)" 586 | msgstr "" 587 | 588 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2252 589 | msgid "Positive big integer" 590 | msgstr "" 591 | 592 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2267 593 | msgid "Positive integer" 594 | msgstr "" 595 | 596 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2282 597 | msgid "Positive small integer" 598 | msgstr "" 599 | 600 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2298 601 | #, python-format 602 | msgid "Slug (up to %(max_length)s)" 603 | msgstr "" 604 | 605 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2334 606 | msgid "Text" 607 | msgstr "" 608 | 609 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2409 610 | #, python-format 611 | msgid "" 612 | "“%(value)s” value has an invalid format. It must be in HH:MM[:ss[.uuuuuu]] " 613 | "format." 614 | msgstr "" 615 | 616 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2413 617 | #, python-format 618 | msgid "" 619 | "“%(value)s” value has the correct format (HH:MM[:ss[.uuuuuu]]) but it is an " 620 | "invalid time." 621 | msgstr "" 622 | 623 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2417 624 | msgid "Time" 625 | msgstr "" 626 | 627 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2525 628 | msgid "URL" 629 | msgstr "" 630 | 631 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2549 632 | msgid "Raw binary data" 633 | msgstr "" 634 | 635 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2614 636 | #, python-format 637 | msgid "“%(value)s” is not a valid UUID." 638 | msgstr "" 639 | 640 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2616 641 | msgid "Universally unique identifier" 642 | msgstr "" 643 | 644 | #: venv/lib/python3.10/site-packages/django/db/models/fields/files.py:232 645 | msgid "File" 646 | msgstr "" 647 | 648 | #: venv/lib/python3.10/site-packages/django/db/models/fields/files.py:392 649 | msgid "Image" 650 | msgstr "" 651 | 652 | #: venv/lib/python3.10/site-packages/django/db/models/fields/json.py:18 653 | msgid "A JSON object" 654 | msgstr "" 655 | 656 | #: venv/lib/python3.10/site-packages/django/db/models/fields/json.py:20 657 | msgid "Value must be valid JSON." 658 | msgstr "" 659 | 660 | #: venv/lib/python3.10/site-packages/django/db/models/fields/related.py:920 661 | #, python-format 662 | msgid "%(model)s instance with %(field)s %(value)r does not exist." 663 | msgstr "" 664 | 665 | #: venv/lib/python3.10/site-packages/django/db/models/fields/related.py:922 666 | msgid "Foreign Key (type determined by related field)" 667 | msgstr "" 668 | 669 | #: venv/lib/python3.10/site-packages/django/db/models/fields/related.py:1229 670 | msgid "One-to-one relationship" 671 | msgstr "" 672 | 673 | #: venv/lib/python3.10/site-packages/django/db/models/fields/related.py:1286 674 | #, python-format 675 | msgid "%(from)s-%(to)s relationship" 676 | msgstr "" 677 | 678 | #: venv/lib/python3.10/site-packages/django/db/models/fields/related.py:1288 679 | #, python-format 680 | msgid "%(from)s-%(to)s relationships" 681 | msgstr "" 682 | 683 | #: venv/lib/python3.10/site-packages/django/db/models/fields/related.py:1336 684 | msgid "Many-to-many relationship" 685 | msgstr "" 686 | 687 | #. Translators: If found as last label character, these punctuation 688 | #. characters will prevent the default label_suffix to be appended to the 689 | #. label 690 | #: venv/lib/python3.10/site-packages/django/forms/boundfield.py:176 691 | msgid ":?.!" 692 | msgstr "" 693 | 694 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:91 695 | msgid "This field is required." 696 | msgstr "" 697 | 698 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:298 699 | msgid "Enter a whole number." 700 | msgstr "" 701 | 702 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:467 703 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:1240 704 | #: venv/lib/python3.10/site-packages/django_jalali/forms/__init__.py:15 705 | msgid "Enter a valid date." 706 | msgstr "" 707 | 708 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:490 709 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:1241 710 | msgid "Enter a valid time." 711 | msgstr "" 712 | 713 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:517 714 | #: venv/lib/python3.10/site-packages/django_jalali/forms/__init__.py:54 715 | msgid "Enter a valid date/time." 716 | msgstr "" 717 | 718 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:551 719 | msgid "Enter a valid duration." 720 | msgstr "" 721 | 722 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:552 723 | #, python-brace-format 724 | msgid "The number of days must be between {min_days} and {max_days}." 725 | msgstr "" 726 | 727 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:618 728 | msgid "No file was submitted. Check the encoding type on the form." 729 | msgstr "" 730 | 731 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:619 732 | msgid "No file was submitted." 733 | msgstr "" 734 | 735 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:620 736 | msgid "The submitted file is empty." 737 | msgstr "" 738 | 739 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:622 740 | #, python-format 741 | msgid "" 742 | "Ensure this filename has at most %(max)d character (it has %(length)d)." 743 | msgid_plural "" 744 | "Ensure this filename has at most %(max)d characters (it has %(length)d)." 745 | msgstr[0] "" 746 | msgstr[1] "" 747 | 748 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:627 749 | msgid "Please either submit a file or check the clear checkbox, not both." 750 | msgstr "" 751 | 752 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:693 753 | msgid "" 754 | "Upload a valid image. The file you uploaded was either not an image or a " 755 | "corrupted image." 756 | msgstr "" 757 | 758 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:856 759 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:948 760 | #: venv/lib/python3.10/site-packages/django/forms/models.py:1572 761 | #, python-format 762 | msgid "Select a valid choice. %(value)s is not one of the available choices." 763 | msgstr "" 764 | 765 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:950 766 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:1069 767 | #: venv/lib/python3.10/site-packages/django/forms/models.py:1570 768 | msgid "Enter a list of values." 769 | msgstr "" 770 | 771 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:1070 772 | msgid "Enter a complete value." 773 | msgstr "" 774 | 775 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:1309 776 | msgid "Enter a valid UUID." 777 | msgstr "" 778 | 779 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:1339 780 | msgid "Enter a valid JSON." 781 | msgstr "" 782 | 783 | #. Translators: This is the default suffix added to form field labels 784 | #: venv/lib/python3.10/site-packages/django/forms/forms.py:98 785 | msgid ":" 786 | msgstr "" 787 | 788 | #: venv/lib/python3.10/site-packages/django/forms/forms.py:248 789 | #: venv/lib/python3.10/site-packages/django/forms/forms.py:332 790 | #, python-format 791 | msgid "(Hidden field %(name)s) %(error)s" 792 | msgstr "" 793 | 794 | #: venv/lib/python3.10/site-packages/django/forms/formsets.py:63 795 | #, python-format 796 | msgid "" 797 | "ManagementForm data is missing or has been tampered with. Missing fields: " 798 | "%(field_names)s. You may need to file a bug report if the issue persists." 799 | msgstr "" 800 | 801 | #: venv/lib/python3.10/site-packages/django/forms/formsets.py:67 802 | #, python-format 803 | msgid "Please submit at most %(num)d form." 804 | msgid_plural "Please submit at most %(num)d forms." 805 | msgstr[0] "" 806 | msgstr[1] "" 807 | 808 | #: venv/lib/python3.10/site-packages/django/forms/formsets.py:72 809 | #, python-format 810 | msgid "Please submit at least %(num)d form." 811 | msgid_plural "Please submit at least %(num)d forms." 812 | msgstr[0] "" 813 | msgstr[1] "" 814 | 815 | #: venv/lib/python3.10/site-packages/django/forms/formsets.py:483 816 | #: venv/lib/python3.10/site-packages/django/forms/formsets.py:490 817 | msgid "Order" 818 | msgstr "" 819 | 820 | #: venv/lib/python3.10/site-packages/django/forms/formsets.py:496 821 | msgid "Delete" 822 | msgstr "" 823 | 824 | #: venv/lib/python3.10/site-packages/django/forms/models.py:892 825 | #, python-format 826 | msgid "Please correct the duplicate data for %(field)s." 827 | msgstr "" 828 | 829 | #: venv/lib/python3.10/site-packages/django/forms/models.py:897 830 | #, python-format 831 | msgid "Please correct the duplicate data for %(field)s, which must be unique." 832 | msgstr "" 833 | 834 | #: venv/lib/python3.10/site-packages/django/forms/models.py:904 835 | #, python-format 836 | msgid "" 837 | "Please correct the duplicate data for %(field_name)s which must be unique " 838 | "for the %(lookup)s in %(date_field)s." 839 | msgstr "" 840 | 841 | #: venv/lib/python3.10/site-packages/django/forms/models.py:913 842 | msgid "Please correct the duplicate values below." 843 | msgstr "" 844 | 845 | #: venv/lib/python3.10/site-packages/django/forms/models.py:1344 846 | msgid "The inline value did not match the parent instance." 847 | msgstr "" 848 | 849 | #: venv/lib/python3.10/site-packages/django/forms/models.py:1435 850 | msgid "" 851 | "Select a valid choice. That choice is not one of the available choices." 852 | msgstr "" 853 | 854 | #: venv/lib/python3.10/site-packages/django/forms/models.py:1574 855 | #, python-format 856 | msgid "“%(pk)s” is not a valid value." 857 | msgstr "" 858 | 859 | #: venv/lib/python3.10/site-packages/django/forms/utils.py:226 860 | #, python-format 861 | msgid "" 862 | "%(datetime)s couldn’t be interpreted in time zone %(current_timezone)s; it " 863 | "may be ambiguous or it may not exist." 864 | msgstr "" 865 | 866 | #: venv/lib/python3.10/site-packages/django/forms/widgets.py:439 867 | msgid "Clear" 868 | msgstr "" 869 | 870 | #: venv/lib/python3.10/site-packages/django/forms/widgets.py:440 871 | msgid "Currently" 872 | msgstr "" 873 | 874 | #: venv/lib/python3.10/site-packages/django/forms/widgets.py:441 875 | msgid "Change" 876 | msgstr "" 877 | 878 | #: venv/lib/python3.10/site-packages/django/forms/widgets.py:770 879 | msgid "Unknown" 880 | msgstr "" 881 | 882 | #: venv/lib/python3.10/site-packages/django/forms/widgets.py:771 883 | msgid "Yes" 884 | msgstr "" 885 | 886 | #: venv/lib/python3.10/site-packages/django/forms/widgets.py:772 887 | msgid "No" 888 | msgstr "" 889 | 890 | #. Translators: Please do not add spaces around commas. 891 | #: venv/lib/python3.10/site-packages/django/template/defaultfilters.py:853 892 | msgid "yes,no,maybe" 893 | msgstr "" 894 | 895 | #: venv/lib/python3.10/site-packages/django/template/defaultfilters.py:883 896 | #: venv/lib/python3.10/site-packages/django/template/defaultfilters.py:900 897 | #, python-format 898 | msgid "%(size)d byte" 899 | msgid_plural "%(size)d bytes" 900 | msgstr[0] "" 901 | msgstr[1] "" 902 | 903 | #: venv/lib/python3.10/site-packages/django/template/defaultfilters.py:902 904 | #, python-format 905 | msgid "%s KB" 906 | msgstr "" 907 | 908 | #: venv/lib/python3.10/site-packages/django/template/defaultfilters.py:904 909 | #, python-format 910 | msgid "%s MB" 911 | msgstr "" 912 | 913 | #: venv/lib/python3.10/site-packages/django/template/defaultfilters.py:906 914 | #, python-format 915 | msgid "%s GB" 916 | msgstr "" 917 | 918 | #: venv/lib/python3.10/site-packages/django/template/defaultfilters.py:908 919 | #, python-format 920 | msgid "%s TB" 921 | msgstr "" 922 | 923 | #: venv/lib/python3.10/site-packages/django/template/defaultfilters.py:910 924 | #, python-format 925 | msgid "%s PB" 926 | msgstr "" 927 | 928 | #: venv/lib/python3.10/site-packages/django/utils/dateformat.py:77 929 | msgid "p.m." 930 | msgstr "" 931 | 932 | #: venv/lib/python3.10/site-packages/django/utils/dateformat.py:78 933 | msgid "a.m." 934 | msgstr "" 935 | 936 | #: venv/lib/python3.10/site-packages/django/utils/dateformat.py:83 937 | msgid "PM" 938 | msgstr "" 939 | 940 | #: venv/lib/python3.10/site-packages/django/utils/dateformat.py:84 941 | msgid "AM" 942 | msgstr "" 943 | 944 | #: venv/lib/python3.10/site-packages/django/utils/dateformat.py:155 945 | msgid "midnight" 946 | msgstr "" 947 | 948 | #: venv/lib/python3.10/site-packages/django/utils/dateformat.py:157 949 | msgid "noon" 950 | msgstr "" 951 | 952 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:7 953 | msgid "Monday" 954 | msgstr "" 955 | 956 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:8 957 | msgid "Tuesday" 958 | msgstr "" 959 | 960 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:9 961 | msgid "Wednesday" 962 | msgstr "" 963 | 964 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:10 965 | msgid "Thursday" 966 | msgstr "" 967 | 968 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:11 969 | msgid "Friday" 970 | msgstr "" 971 | 972 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:12 973 | msgid "Saturday" 974 | msgstr "" 975 | 976 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:13 977 | msgid "Sunday" 978 | msgstr "" 979 | 980 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:16 981 | msgid "Mon" 982 | msgstr "" 983 | 984 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:17 985 | msgid "Tue" 986 | msgstr "" 987 | 988 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:18 989 | msgid "Wed" 990 | msgstr "" 991 | 992 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:19 993 | msgid "Thu" 994 | msgstr "" 995 | 996 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:20 997 | msgid "Fri" 998 | msgstr "" 999 | 1000 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:21 1001 | msgid "Sat" 1002 | msgstr "" 1003 | 1004 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:22 1005 | msgid "Sun" 1006 | msgstr "" 1007 | 1008 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:25 1009 | msgid "January" 1010 | msgstr "" 1011 | 1012 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:26 1013 | msgid "February" 1014 | msgstr "" 1015 | 1016 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:27 1017 | msgid "March" 1018 | msgstr "" 1019 | 1020 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:28 1021 | msgid "April" 1022 | msgstr "" 1023 | 1024 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:29 1025 | msgid "May" 1026 | msgstr "" 1027 | 1028 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:30 1029 | msgid "June" 1030 | msgstr "" 1031 | 1032 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:31 1033 | msgid "July" 1034 | msgstr "" 1035 | 1036 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:32 1037 | msgid "August" 1038 | msgstr "" 1039 | 1040 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:33 1041 | msgid "September" 1042 | msgstr "" 1043 | 1044 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:34 1045 | msgid "October" 1046 | msgstr "" 1047 | 1048 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:35 1049 | msgid "November" 1050 | msgstr "" 1051 | 1052 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:36 1053 | msgid "December" 1054 | msgstr "" 1055 | 1056 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:39 1057 | msgid "jan" 1058 | msgstr "" 1059 | 1060 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:40 1061 | msgid "feb" 1062 | msgstr "" 1063 | 1064 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:41 1065 | msgid "mar" 1066 | msgstr "" 1067 | 1068 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:42 1069 | msgid "apr" 1070 | msgstr "" 1071 | 1072 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:43 1073 | msgid "may" 1074 | msgstr "" 1075 | 1076 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:44 1077 | msgid "jun" 1078 | msgstr "" 1079 | 1080 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:45 1081 | msgid "jul" 1082 | msgstr "" 1083 | 1084 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:46 1085 | msgid "aug" 1086 | msgstr "" 1087 | 1088 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:47 1089 | msgid "sep" 1090 | msgstr "" 1091 | 1092 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:48 1093 | msgid "oct" 1094 | msgstr "" 1095 | 1096 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:49 1097 | msgid "nov" 1098 | msgstr "" 1099 | 1100 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:50 1101 | msgid "dec" 1102 | msgstr "" 1103 | 1104 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:53 1105 | msgctxt "abbrev. month" 1106 | msgid "Jan." 1107 | msgstr "" 1108 | 1109 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:54 1110 | msgctxt "abbrev. month" 1111 | msgid "Feb." 1112 | msgstr "" 1113 | 1114 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:55 1115 | msgctxt "abbrev. month" 1116 | msgid "March" 1117 | msgstr "" 1118 | 1119 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:56 1120 | msgctxt "abbrev. month" 1121 | msgid "April" 1122 | msgstr "" 1123 | 1124 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:57 1125 | msgctxt "abbrev. month" 1126 | msgid "May" 1127 | msgstr "" 1128 | 1129 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:58 1130 | msgctxt "abbrev. month" 1131 | msgid "June" 1132 | msgstr "" 1133 | 1134 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:59 1135 | msgctxt "abbrev. month" 1136 | msgid "July" 1137 | msgstr "" 1138 | 1139 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:60 1140 | msgctxt "abbrev. month" 1141 | msgid "Aug." 1142 | msgstr "" 1143 | 1144 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:61 1145 | msgctxt "abbrev. month" 1146 | msgid "Sept." 1147 | msgstr "" 1148 | 1149 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:62 1150 | msgctxt "abbrev. month" 1151 | msgid "Oct." 1152 | msgstr "" 1153 | 1154 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:63 1155 | msgctxt "abbrev. month" 1156 | msgid "Nov." 1157 | msgstr "" 1158 | 1159 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:64 1160 | msgctxt "abbrev. month" 1161 | msgid "Dec." 1162 | msgstr "" 1163 | 1164 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:67 1165 | msgctxt "alt. month" 1166 | msgid "January" 1167 | msgstr "" 1168 | 1169 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:68 1170 | msgctxt "alt. month" 1171 | msgid "February" 1172 | msgstr "" 1173 | 1174 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:69 1175 | msgctxt "alt. month" 1176 | msgid "March" 1177 | msgstr "" 1178 | 1179 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:70 1180 | msgctxt "alt. month" 1181 | msgid "April" 1182 | msgstr "" 1183 | 1184 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:71 1185 | msgctxt "alt. month" 1186 | msgid "May" 1187 | msgstr "" 1188 | 1189 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:72 1190 | msgctxt "alt. month" 1191 | msgid "June" 1192 | msgstr "" 1193 | 1194 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:73 1195 | msgctxt "alt. month" 1196 | msgid "July" 1197 | msgstr "" 1198 | 1199 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:74 1200 | msgctxt "alt. month" 1201 | msgid "August" 1202 | msgstr "" 1203 | 1204 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:75 1205 | msgctxt "alt. month" 1206 | msgid "September" 1207 | msgstr "" 1208 | 1209 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:76 1210 | msgctxt "alt. month" 1211 | msgid "October" 1212 | msgstr "" 1213 | 1214 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:77 1215 | msgctxt "alt. month" 1216 | msgid "November" 1217 | msgstr "" 1218 | 1219 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:78 1220 | msgctxt "alt. month" 1221 | msgid "December" 1222 | msgstr "" 1223 | 1224 | #: venv/lib/python3.10/site-packages/django/utils/ipv6.py:8 1225 | msgid "This is not a valid IPv6 address." 1226 | msgstr "" 1227 | 1228 | #: venv/lib/python3.10/site-packages/django/utils/text.py:76 1229 | #, python-format 1230 | msgctxt "String to return when truncating text" 1231 | msgid "%(truncated_text)s…" 1232 | msgstr "" 1233 | 1234 | #: venv/lib/python3.10/site-packages/django/utils/text.py:252 1235 | msgid "or" 1236 | msgstr "" 1237 | 1238 | #. Translators: This string is used as a separator between list elements 1239 | #: venv/lib/python3.10/site-packages/django/utils/text.py:271 1240 | #: venv/lib/python3.10/site-packages/django/utils/timesince.py:94 1241 | msgid ", " 1242 | msgstr "" 1243 | 1244 | #: venv/lib/python3.10/site-packages/django/utils/timesince.py:9 1245 | #, python-format 1246 | msgid "%(num)d year" 1247 | msgid_plural "%(num)d years" 1248 | msgstr[0] "" 1249 | msgstr[1] "" 1250 | 1251 | #: venv/lib/python3.10/site-packages/django/utils/timesince.py:10 1252 | #, python-format 1253 | msgid "%(num)d month" 1254 | msgid_plural "%(num)d months" 1255 | msgstr[0] "" 1256 | msgstr[1] "" 1257 | 1258 | #: venv/lib/python3.10/site-packages/django/utils/timesince.py:11 1259 | #, python-format 1260 | msgid "%(num)d week" 1261 | msgid_plural "%(num)d weeks" 1262 | msgstr[0] "" 1263 | msgstr[1] "" 1264 | 1265 | #: venv/lib/python3.10/site-packages/django/utils/timesince.py:12 1266 | #, python-format 1267 | msgid "%(num)d day" 1268 | msgid_plural "%(num)d days" 1269 | msgstr[0] "" 1270 | msgstr[1] "" 1271 | 1272 | #: venv/lib/python3.10/site-packages/django/utils/timesince.py:13 1273 | #, python-format 1274 | msgid "%(num)d hour" 1275 | msgid_plural "%(num)d hours" 1276 | msgstr[0] "" 1277 | msgstr[1] "" 1278 | 1279 | #: venv/lib/python3.10/site-packages/django/utils/timesince.py:14 1280 | #, python-format 1281 | msgid "%(num)d minute" 1282 | msgid_plural "%(num)d minutes" 1283 | msgstr[0] "" 1284 | msgstr[1] "" 1285 | 1286 | #: venv/lib/python3.10/site-packages/django/views/csrf.py:111 1287 | msgid "Forbidden" 1288 | msgstr "" 1289 | 1290 | #: venv/lib/python3.10/site-packages/django/views/csrf.py:112 1291 | msgid "CSRF verification failed. Request aborted." 1292 | msgstr "" 1293 | 1294 | #: venv/lib/python3.10/site-packages/django/views/csrf.py:116 1295 | msgid "" 1296 | "You are seeing this message because this HTTPS site requires a “Referer " 1297 | "header” to be sent by your web browser, but none was sent. This header is " 1298 | "required for security reasons, to ensure that your browser is not being " 1299 | "hijacked by third parties." 1300 | msgstr "" 1301 | 1302 | #: venv/lib/python3.10/site-packages/django/views/csrf.py:122 1303 | msgid "" 1304 | "If you have configured your browser to disable “Referer” headers, please re-" 1305 | "enable them, at least for this site, or for HTTPS connections, or for “same-" 1306 | "origin” requests." 1307 | msgstr "" 1308 | 1309 | #: venv/lib/python3.10/site-packages/django/views/csrf.py:127 1310 | msgid "" 1311 | "If you are using the tag or" 1312 | " including the “Referrer-Policy: no-referrer” header, please remove them. " 1313 | "The CSRF protection requires the “Referer” header to do strict referer " 1314 | "checking. If you’re concerned about privacy, use alternatives like for links to third-party sites." 1316 | msgstr "" 1317 | 1318 | #: venv/lib/python3.10/site-packages/django/views/csrf.py:136 1319 | msgid "" 1320 | "You are seeing this message because this site requires a CSRF cookie when " 1321 | "submitting forms. This cookie is required for security reasons, to ensure " 1322 | "that your browser is not being hijacked by third parties." 1323 | msgstr "" 1324 | 1325 | #: venv/lib/python3.10/site-packages/django/views/csrf.py:142 1326 | msgid "" 1327 | "If you have configured your browser to disable cookies, please re-enable " 1328 | "them, at least for this site, or for “same-origin” requests." 1329 | msgstr "" 1330 | 1331 | #: venv/lib/python3.10/site-packages/django/views/csrf.py:148 1332 | msgid "More information is available with DEBUG=True." 1333 | msgstr "" 1334 | 1335 | #: venv/lib/python3.10/site-packages/django/views/generic/dates.py:44 1336 | msgid "No year specified" 1337 | msgstr "" 1338 | 1339 | #: venv/lib/python3.10/site-packages/django/views/generic/dates.py:64 1340 | #: venv/lib/python3.10/site-packages/django/views/generic/dates.py:115 1341 | #: venv/lib/python3.10/site-packages/django/views/generic/dates.py:214 1342 | msgid "Date out of range" 1343 | msgstr "" 1344 | 1345 | #: venv/lib/python3.10/site-packages/django/views/generic/dates.py:94 1346 | msgid "No month specified" 1347 | msgstr "" 1348 | 1349 | #: venv/lib/python3.10/site-packages/django/views/generic/dates.py:147 1350 | msgid "No day specified" 1351 | msgstr "" 1352 | 1353 | #: venv/lib/python3.10/site-packages/django/views/generic/dates.py:194 1354 | msgid "No week specified" 1355 | msgstr "" 1356 | 1357 | #: venv/lib/python3.10/site-packages/django/views/generic/dates.py:349 1358 | #: venv/lib/python3.10/site-packages/django/views/generic/dates.py:380 1359 | #, python-format 1360 | msgid "No %(verbose_name_plural)s available" 1361 | msgstr "" 1362 | 1363 | #: venv/lib/python3.10/site-packages/django/views/generic/dates.py:652 1364 | #, python-format 1365 | msgid "" 1366 | "Future %(verbose_name_plural)s not available because " 1367 | "%(class_name)s.allow_future is False." 1368 | msgstr "" 1369 | 1370 | #: venv/lib/python3.10/site-packages/django/views/generic/dates.py:692 1371 | #, python-format 1372 | msgid "Invalid date string “%(datestr)s” given format “%(format)s”" 1373 | msgstr "" 1374 | 1375 | #: venv/lib/python3.10/site-packages/django/views/generic/detail.py:56 1376 | #, python-format 1377 | msgid "No %(verbose_name)s found matching the query" 1378 | msgstr "" 1379 | 1380 | #: venv/lib/python3.10/site-packages/django/views/generic/list.py:70 1381 | msgid "Page is not “last”, nor can it be converted to an int." 1382 | msgstr "" 1383 | 1384 | #: venv/lib/python3.10/site-packages/django/views/generic/list.py:77 1385 | #, python-format 1386 | msgid "Invalid page (%(page_number)s): %(message)s" 1387 | msgstr "" 1388 | 1389 | #: venv/lib/python3.10/site-packages/django/views/generic/list.py:169 1390 | #, python-format 1391 | msgid "Empty list and “%(class_name)s.allow_empty” is False." 1392 | msgstr "" 1393 | 1394 | #: venv/lib/python3.10/site-packages/django/views/static.py:38 1395 | msgid "Directory indexes are not allowed here." 1396 | msgstr "" 1397 | 1398 | #: venv/lib/python3.10/site-packages/django/views/static.py:40 1399 | #, python-format 1400 | msgid "“%(path)s” does not exist" 1401 | msgstr "" 1402 | 1403 | #: venv/lib/python3.10/site-packages/django/views/static.py:79 1404 | #, python-format 1405 | msgid "Index of %(directory)s" 1406 | msgstr "" 1407 | 1408 | #: venv/lib/python3.10/site-packages/django/views/templates/default_urlconf.html:7 1409 | #: venv/lib/python3.10/site-packages/django/views/templates/default_urlconf.html:221 1410 | msgid "The install worked successfully! Congratulations!" 1411 | msgstr "" 1412 | 1413 | #: venv/lib/python3.10/site-packages/django/views/templates/default_urlconf.html:207 1414 | #, python-format 1415 | msgid "" 1416 | "View release notes for Django %(version)s" 1418 | msgstr "" 1419 | 1420 | #: venv/lib/python3.10/site-packages/django/views/templates/default_urlconf.html:222 1421 | #, python-format 1422 | msgid "" 1423 | "You are seeing this page because DEBUG=True is in your settings file " 1426 | "and you have not configured any URLs." 1427 | msgstr "" 1428 | 1429 | #: venv/lib/python3.10/site-packages/django/views/templates/default_urlconf.html:230 1430 | msgid "Django Documentation" 1431 | msgstr "" 1432 | 1433 | #: venv/lib/python3.10/site-packages/django/views/templates/default_urlconf.html:231 1434 | msgid "Topics, references, & how-to’s" 1435 | msgstr "" 1436 | 1437 | #: venv/lib/python3.10/site-packages/django/views/templates/default_urlconf.html:239 1438 | msgid "Tutorial: A Polling App" 1439 | msgstr "" 1440 | 1441 | #: venv/lib/python3.10/site-packages/django/views/templates/default_urlconf.html:240 1442 | msgid "Get started with Django" 1443 | msgstr "" 1444 | 1445 | #: venv/lib/python3.10/site-packages/django/views/templates/default_urlconf.html:248 1446 | msgid "Django Community" 1447 | msgstr "" 1448 | 1449 | #: venv/lib/python3.10/site-packages/django/views/templates/default_urlconf.html:249 1450 | msgid "Connect, get help, or contribute" 1451 | msgstr "" 1452 | 1453 | #: venv/lib/python3.10/site-packages/django_jalali/admin/filters.py:38 1454 | #: venv/lib/python3.10/site-packages/django_jalali/admin/filterspecs.py:38 1455 | msgid "Any date" 1456 | msgstr "" 1457 | 1458 | #: venv/lib/python3.10/site-packages/django_jalali/admin/filters.py:39 1459 | #: venv/lib/python3.10/site-packages/django_jalali/admin/filterspecs.py:39 1460 | msgid "Today" 1461 | msgstr "" 1462 | 1463 | #: venv/lib/python3.10/site-packages/django_jalali/admin/filters.py:43 1464 | #: venv/lib/python3.10/site-packages/django_jalali/admin/filterspecs.py:40 1465 | msgid "Past 7 days" 1466 | msgstr "" 1467 | 1468 | #: venv/lib/python3.10/site-packages/django_jalali/admin/filters.py:47 1469 | #: venv/lib/python3.10/site-packages/django_jalali/admin/filterspecs.py:44 1470 | msgid "This month" 1471 | msgstr "" 1472 | 1473 | #: venv/lib/python3.10/site-packages/django_jalali/admin/filters.py:51 1474 | #: venv/lib/python3.10/site-packages/django_jalali/admin/filterspecs.py:48 1475 | msgid "This year" 1476 | msgstr "" 1477 | 1478 | #: venv/lib/python3.10/site-packages/django_jalali/admin/widgets.py:51 1479 | msgid "Date:" 1480 | msgstr "" 1481 | 1482 | #: venv/lib/python3.10/site-packages/django_jalali/admin/widgets.py:51 1483 | msgid "Time:" 1484 | msgstr "" 1485 | 1486 | #: venv/lib/python3.10/site-packages/django_jalali/db/models.py:64 1487 | msgid "Enter a valid date in YYYY-MM-DD format." 1488 | msgstr "" 1489 | 1490 | #: venv/lib/python3.10/site-packages/django_jalali/db/models.py:65 1491 | #, python-format 1492 | msgid "Invalid date: %s" 1493 | msgstr "" 1494 | 1495 | #: venv/lib/python3.10/site-packages/django_jalali/db/models.py:220 1496 | msgid "Enter a valid date/time in YYYY-MM-DD HH:MM[:ss[.uuuuuu]] format." 1497 | msgstr "" 1498 | 1499 | #: venv/lib/python3.10/site-packages/drf_spectacular/openapi.py:1272 1500 | #: venv/lib/python3.10/site-packages/drf_spectacular/openapi.py:1325 1501 | #: venv/lib/python3.10/site-packages/drf_spectacular/openapi.py:1329 1502 | #: venv/lib/python3.10/site-packages/drf_spectacular/openapi.py:1333 1503 | msgid "No response body" 1504 | msgstr "" 1505 | 1506 | #: venv/lib/python3.10/site-packages/drf_spectacular/openapi.py:1297 1507 | #: venv/lib/python3.10/site-packages/drf_spectacular/openapi.py:1349 1508 | msgid "Unspecified response body" 1509 | msgstr "" 1510 | 1511 | #: venv/lib/python3.10/site-packages/drf_spectacular/plumbing.py:420 1512 | #, python-format 1513 | msgid "Token-based authentication with required prefix \"%s\"" 1514 | msgstr "" 1515 | 1516 | #: venv/lib/python3.10/site-packages/drf_spectacular/views.py:43 1517 | msgid "" 1518 | "\n" 1519 | " OpenApi3 schema for this API. Format can be selected via content negotiation.\n" 1520 | "\n" 1521 | " - YAML: application/vnd.oai.openapi\n" 1522 | " - JSON: application/vnd.oai.openapi+json\n" 1523 | " " 1524 | msgstr "" 1525 | 1526 | #: venv/lib/python3.10/site-packages/modeltranslation/widgets.py:26 1527 | msgid "None" 1528 | msgstr "" 1529 | 1530 | #: venv/lib/python3.10/site-packages/parler_rest/fields.py:21 1531 | msgid "Input is not a valid dict" 1532 | msgstr "" 1533 | 1534 | #: venv/lib/python3.10/site-packages/parler_rest/fields.py:22 1535 | msgid "This field may not be empty." 1536 | msgstr "" 1537 | 1538 | #, fuzzy 1539 | #~ msgid "Sub Category" 1540 | #~ msgstr "Category" 1541 | 1542 | #~ msgid "admin/" 1543 | #~ msgstr "admin/" 1544 | -------------------------------------------------------------------------------- /locale/fa/LC_MESSAGES/django.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | #, fuzzy 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: PACKAGE VERSION\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2022-11-01 12:21+0000\n" 12 | "PO-Revision-Date: 2022-11-01 12:24+0000\n" 13 | "Last-Translator: \n" 14 | "Language-Team: LANGUAGE \n" 15 | "Language: \n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=UTF-8\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | "Plural-Forms: nplurals=2; plural=(n > 1);\n" 20 | "X-Translated-Using: django-rosetta 0.9.8\n" 21 | 22 | #: blog/admin/admin_category.py:14 blog/admin/admin_category.py:23 23 | #: blog/admin/admin_post.py:14 blog/admin/admin_post.py:23 24 | msgid "Fa" 25 | msgstr "فارسی" 26 | 27 | #: blog/admin/admin_category.py:15 blog/admin/admin_category.py:24 28 | #: blog/admin/admin_post.py:15 blog/admin/admin_post.py:24 29 | msgid "En" 30 | msgstr "انگلیسی" 31 | 32 | #: blog/admin/admin_category.py:16 blog/admin/admin_category.py:25 33 | #: blog/admin/admin_post.py:16 blog/admin/admin_post.py:25 34 | msgid "Main" 35 | msgstr "اصلی" 36 | 37 | #: blog/admin/admin_category.py:17 blog/admin/admin_post.py:17 38 | #: blog/templates/blog/detail_post.html:7 blog/templates/blog/list_post.html:9 39 | msgid "Date" 40 | msgstr "تاریخ" 41 | 42 | #: blog/admin/admin_category.py:18 blog/admin/admin_category.py:26 43 | msgid "SEO Information" 44 | msgstr "اطلاعات سئو" 45 | 46 | #: blog/admin/admin_category.py:19 blog/admin/admin_category.py:27 47 | #: blog/admin/admin_post.py:19 blog/admin/admin_post.py:27 48 | msgid "Settings" 49 | msgstr "تنطیمات" 50 | 51 | #: blog/admin/admin_post.py:18 blog/admin/admin_post.py:26 52 | msgid "SEO information" 53 | msgstr "اطلاعات سئو" 54 | 55 | #: blog/models/model_category.py:16 blog/templates/blog/detail_post.html:11 56 | #: blog/templates/blog/list_post.html:12 57 | msgid "Category" 58 | msgstr "دسته بندی" 59 | 60 | #: blog/models/model_category.py:17 61 | msgid "Categories" 62 | msgstr "دسته بندی ها" 63 | 64 | #: blog/models/model_category.py:20 65 | msgid "parent category" 66 | msgstr "زیر دسته بندی" 67 | 68 | #: blog/models/model_post.py:14 69 | msgid "Post" 70 | msgstr "پست" 71 | 72 | #: blog/models/model_post.py:15 73 | msgid "Posts" 74 | msgstr "پست ها" 75 | 76 | #: blog/models/model_post.py:17 77 | msgid "category" 78 | msgstr "دسته بندی" 79 | 80 | #: blog/templates/blog/detail_post.html:10 81 | msgid "Author" 82 | msgstr "نویسنده" 83 | 84 | #: blog/templates/blog/list_post.html:17 85 | msgid "Database is empty" 86 | msgstr "دیتابیس خالی است" 87 | 88 | #: blog/views/view_create_post.py:14 89 | #| msgid "created at" 90 | msgid "create post" 91 | msgstr "ایجاد پست" 92 | 93 | #: blog/views/view_update_post.py:14 94 | #, fuzzy 95 | #| msgid "updated at" 96 | msgid "update post" 97 | msgstr "زمان اپدیت" 98 | 99 | #: core/settings.py:120 100 | msgid "English" 101 | msgstr "انگلیسی" 102 | 103 | #: core/settings.py:121 104 | msgid "Persian" 105 | msgstr "فارسی" 106 | 107 | #: templates/base.html:22 108 | msgid "This is the title" 109 | msgstr "" 110 | 111 | #: templates/base.html:66 112 | msgid "TestDriven.io Courses" 113 | msgstr "" 114 | 115 | #: utils/general/models/model_basic_post_abstract.py:26 116 | #: utils/general/models/model_taxonomy_abstraction.py:15 117 | msgid "title" 118 | msgstr "عنوان" 119 | 120 | #: utils/general/models/model_basic_post_abstract.py:27 121 | msgid "content" 122 | msgstr "محتوا" 123 | 124 | #: utils/general/models/model_basic_post_abstract.py:28 125 | #: utils/general/models/model_taxonomy_abstraction.py:17 126 | msgid "slug" 127 | msgstr "ادرس URL" 128 | 129 | #: utils/general/models/model_basic_post_abstract.py:30 130 | msgid "author" 131 | msgstr "نویسنده" 132 | 133 | #: utils/general/models/model_basic_post_abstract.py:31 134 | #: utils/general/models/model_taxonomy_abstraction.py:18 135 | msgid "thumbnail" 136 | msgstr "عکس " 137 | 138 | #: utils/general/models/model_basic_post_abstract.py:34 139 | #: utils/general/models/model_taxonomy_abstraction.py:19 140 | msgid "thumbnail alt" 141 | msgstr "ادرس عکس" 142 | 143 | #: utils/general/models/model_date_abstract.py:10 144 | msgid "created at" 145 | msgstr "زمان ایجاد" 146 | 147 | #: utils/general/models/model_date_abstract.py:11 148 | msgid "updated at" 149 | msgstr "زمان اپدیت" 150 | 151 | #: utils/general/models/model_date_abstract.py:13 152 | msgid "created at jalali" 153 | msgstr "زمان ایجاد" 154 | 155 | #: utils/general/models/model_date_abstract.py:14 156 | msgid "updated at jalali" 157 | msgstr "زمان اپدیت" 158 | 159 | #: utils/general/models/model_seo_abstract.py:10 160 | msgid "meta title" 161 | msgstr "عنوان متا" 162 | 163 | #: utils/general/models/model_seo_abstract.py:11 164 | msgid "meta description" 165 | msgstr "توضیحات متا" 166 | 167 | #: utils/general/models/model_status_abstract.py:10 168 | msgid "Publish" 169 | msgstr "انتشار" 170 | 171 | #: utils/general/models/model_status_abstract.py:11 172 | msgid "Inriview" 173 | msgstr "در بررسی" 174 | 175 | #: utils/general/models/model_status_abstract.py:12 176 | msgid "Pending" 177 | msgstr "در انتظار" 178 | 179 | #: utils/general/models/model_status_abstract.py:14 180 | msgid "status" 181 | msgstr "وضعیت" 182 | 183 | #: utils/general/models/model_status_language.py:9 184 | msgid "is active" 185 | msgstr "فعال است ؟" 186 | 187 | #: utils/general/models/model_taxonomy_abstraction.py:16 188 | msgid "description" 189 | msgstr "توضیخات" 190 | 191 | #: venv/lib/python3.10/site-packages/ckeditor_uploader/forms.py:6 192 | msgid "Search files" 193 | msgstr "جست و جو فیلد" 194 | 195 | #: venv/lib/python3.10/site-packages/ckeditor_uploader/templates/ckeditor/browse.html:5 196 | msgid "Select an image to embed" 197 | msgstr "" 198 | 199 | #: venv/lib/python3.10/site-packages/ckeditor_uploader/templates/ckeditor/browse.html:27 200 | msgid "Browse for the image you want, then click 'Embed Image' to continue..." 201 | msgstr "" 202 | 203 | #: venv/lib/python3.10/site-packages/ckeditor_uploader/templates/ckeditor/browse.html:29 204 | msgid "" 205 | "No images found. Upload images using the 'Image Button' dialog's 'Upload' " 206 | "tab." 207 | msgstr "" 208 | 209 | #: venv/lib/python3.10/site-packages/ckeditor_uploader/templates/ckeditor/browse.html:50 210 | msgid "Images in: " 211 | msgstr "" 212 | 213 | #: venv/lib/python3.10/site-packages/ckeditor_uploader/templates/ckeditor/browse.html:62 214 | #: venv/lib/python3.10/site-packages/ckeditor_uploader/templates/ckeditor/browse.html:80 215 | msgid "Embed Image" 216 | msgstr "" 217 | 218 | #: venv/lib/python3.10/site-packages/ckeditor_uploader/templates/ckeditor/browse.html:146 219 | msgid "Play Slideshow" 220 | msgstr "" 221 | 222 | #: venv/lib/python3.10/site-packages/ckeditor_uploader/templates/ckeditor/browse.html:147 223 | msgid "Pause Slideshow" 224 | msgstr "" 225 | 226 | #: venv/lib/python3.10/site-packages/ckeditor_uploader/templates/ckeditor/browse.html:148 227 | msgid "‹ Previous Photo" 228 | msgstr "" 229 | 230 | #: venv/lib/python3.10/site-packages/ckeditor_uploader/templates/ckeditor/browse.html:149 231 | msgid "Next Photo ›" 232 | msgstr "" 233 | 234 | #: venv/lib/python3.10/site-packages/ckeditor_uploader/templates/ckeditor/browse.html:150 235 | msgid "Next ›" 236 | msgstr "" 237 | 238 | #: venv/lib/python3.10/site-packages/ckeditor_uploader/templates/ckeditor/browse.html:151 239 | msgid "‹ Prev" 240 | msgstr "" 241 | 242 | #: venv/lib/python3.10/site-packages/django/contrib/messages/apps.py:15 243 | msgid "Messages" 244 | msgstr "پیام" 245 | 246 | #: venv/lib/python3.10/site-packages/django/contrib/sitemaps/apps.py:8 247 | msgid "Site Maps" 248 | msgstr "" 249 | 250 | #: venv/lib/python3.10/site-packages/django/contrib/staticfiles/apps.py:9 251 | msgid "Static Files" 252 | msgstr "" 253 | 254 | #: venv/lib/python3.10/site-packages/django/contrib/syndication/apps.py:7 255 | msgid "Syndication" 256 | msgstr "" 257 | 258 | #. Translators: String used to replace omitted page numbers in elided page 259 | #. range generated by paginators, e.g. [1, 2, '…', 5, 6, 7, '…', 9, 10]. 260 | #: venv/lib/python3.10/site-packages/django/core/paginator.py:30 261 | msgid "…" 262 | msgstr "" 263 | 264 | #: venv/lib/python3.10/site-packages/django/core/paginator.py:50 265 | msgid "That page number is not an integer" 266 | msgstr "" 267 | 268 | #: venv/lib/python3.10/site-packages/django/core/paginator.py:52 269 | msgid "That page number is less than 1" 270 | msgstr "" 271 | 272 | #: venv/lib/python3.10/site-packages/django/core/paginator.py:57 273 | msgid "That page contains no results" 274 | msgstr "" 275 | 276 | #: venv/lib/python3.10/site-packages/django/core/validators.py:22 277 | msgid "Enter a valid value." 278 | msgstr "" 279 | 280 | #: venv/lib/python3.10/site-packages/django/core/validators.py:104 281 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:751 282 | msgid "Enter a valid URL." 283 | msgstr "" 284 | 285 | #: venv/lib/python3.10/site-packages/django/core/validators.py:164 286 | msgid "Enter a valid integer." 287 | msgstr "" 288 | 289 | #: venv/lib/python3.10/site-packages/django/core/validators.py:175 290 | msgid "Enter a valid email address." 291 | msgstr "" 292 | 293 | #. Translators: "letters" means latin letters: a-z and A-Z. 294 | #: venv/lib/python3.10/site-packages/django/core/validators.py:256 295 | msgid "" 296 | "Enter a valid “slug” consisting of letters, numbers, underscores or hyphens." 297 | msgstr "" 298 | 299 | #: venv/lib/python3.10/site-packages/django/core/validators.py:264 300 | msgid "" 301 | "Enter a valid “slug” consisting of Unicode letters, numbers, underscores, or" 302 | " hyphens." 303 | msgstr "" 304 | 305 | #: venv/lib/python3.10/site-packages/django/core/validators.py:276 306 | #: venv/lib/python3.10/site-packages/django/core/validators.py:284 307 | #: venv/lib/python3.10/site-packages/django/core/validators.py:313 308 | msgid "Enter a valid IPv4 address." 309 | msgstr "" 310 | 311 | #: venv/lib/python3.10/site-packages/django/core/validators.py:293 312 | #: venv/lib/python3.10/site-packages/django/core/validators.py:314 313 | msgid "Enter a valid IPv6 address." 314 | msgstr "" 315 | 316 | #: venv/lib/python3.10/site-packages/django/core/validators.py:305 317 | #: venv/lib/python3.10/site-packages/django/core/validators.py:312 318 | msgid "Enter a valid IPv4 or IPv6 address." 319 | msgstr "" 320 | 321 | #: venv/lib/python3.10/site-packages/django/core/validators.py:348 322 | msgid "Enter only digits separated by commas." 323 | msgstr "" 324 | 325 | #: venv/lib/python3.10/site-packages/django/core/validators.py:354 326 | #, python-format 327 | msgid "Ensure this value is %(limit_value)s (it is %(show_value)s)." 328 | msgstr "" 329 | 330 | #: venv/lib/python3.10/site-packages/django/core/validators.py:389 331 | #, python-format 332 | msgid "Ensure this value is less than or equal to %(limit_value)s." 333 | msgstr "" 334 | 335 | #: venv/lib/python3.10/site-packages/django/core/validators.py:398 336 | #, python-format 337 | msgid "Ensure this value is greater than or equal to %(limit_value)s." 338 | msgstr "" 339 | 340 | #: venv/lib/python3.10/site-packages/django/core/validators.py:407 341 | #, python-format 342 | msgid "Ensure this value is a multiple of step size %(limit_value)s." 343 | msgstr "" 344 | 345 | #: venv/lib/python3.10/site-packages/django/core/validators.py:417 346 | #, python-format 347 | msgid "" 348 | "Ensure this value has at least %(limit_value)d character (it has " 349 | "%(show_value)d)." 350 | msgid_plural "" 351 | "Ensure this value has at least %(limit_value)d characters (it has " 352 | "%(show_value)d)." 353 | msgstr[0] "" 354 | msgstr[1] "" 355 | 356 | #: venv/lib/python3.10/site-packages/django/core/validators.py:435 357 | #, python-format 358 | msgid "" 359 | "Ensure this value has at most %(limit_value)d character (it has " 360 | "%(show_value)d)." 361 | msgid_plural "" 362 | "Ensure this value has at most %(limit_value)d characters (it has " 363 | "%(show_value)d)." 364 | msgstr[0] "" 365 | msgstr[1] "" 366 | 367 | #: venv/lib/python3.10/site-packages/django/core/validators.py:458 368 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:347 369 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:386 370 | msgid "Enter a number." 371 | msgstr "" 372 | 373 | #: venv/lib/python3.10/site-packages/django/core/validators.py:460 374 | #, python-format 375 | msgid "Ensure that there are no more than %(max)s digit in total." 376 | msgid_plural "Ensure that there are no more than %(max)s digits in total." 377 | msgstr[0] "" 378 | msgstr[1] "" 379 | 380 | #: venv/lib/python3.10/site-packages/django/core/validators.py:465 381 | #, python-format 382 | msgid "Ensure that there are no more than %(max)s decimal place." 383 | msgid_plural "Ensure that there are no more than %(max)s decimal places." 384 | msgstr[0] "" 385 | msgstr[1] "" 386 | 387 | #: venv/lib/python3.10/site-packages/django/core/validators.py:470 388 | #, python-format 389 | msgid "" 390 | "Ensure that there are no more than %(max)s digit before the decimal point." 391 | msgid_plural "" 392 | "Ensure that there are no more than %(max)s digits before the decimal point." 393 | msgstr[0] "" 394 | msgstr[1] "" 395 | 396 | #: venv/lib/python3.10/site-packages/django/core/validators.py:539 397 | #, python-format 398 | msgid "" 399 | "File extension “%(extension)s” is not allowed. Allowed extensions are: " 400 | "%(allowed_extensions)s." 401 | msgstr "" 402 | 403 | #: venv/lib/python3.10/site-packages/django/core/validators.py:600 404 | msgid "Null characters are not allowed." 405 | msgstr "" 406 | 407 | #: venv/lib/python3.10/site-packages/django/db/models/base.py:1401 408 | #: venv/lib/python3.10/site-packages/django/forms/models.py:899 409 | msgid "and" 410 | msgstr "" 411 | 412 | #: venv/lib/python3.10/site-packages/django/db/models/base.py:1403 413 | #, python-format 414 | msgid "%(model_name)s with this %(field_labels)s already exists." 415 | msgstr "" 416 | 417 | #: venv/lib/python3.10/site-packages/django/db/models/constraints.py:17 418 | #, python-format 419 | msgid "Constraint “%(name)s” is violated." 420 | msgstr "" 421 | 422 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:129 423 | #, python-format 424 | msgid "Value %(value)r is not a valid choice." 425 | msgstr "" 426 | 427 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:130 428 | msgid "This field cannot be null." 429 | msgstr "" 430 | 431 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:131 432 | msgid "This field cannot be blank." 433 | msgstr "" 434 | 435 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:132 436 | #, python-format 437 | msgid "%(model_name)s with this %(field_label)s already exists." 438 | msgstr "" 439 | 440 | #. Translators: The 'lookup_type' is one of 'date', 'year' or 441 | #. 'month'. Eg: "Title must be unique for pub_date year" 442 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:136 443 | #, python-format 444 | msgid "" 445 | "%(field_label)s must be unique for %(date_field_label)s %(lookup_type)s." 446 | msgstr "" 447 | 448 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:174 449 | #, python-format 450 | msgid "Field of type: %(field_type)s" 451 | msgstr "" 452 | 453 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1065 454 | #, python-format 455 | msgid "“%(value)s” value must be either True or False." 456 | msgstr "" 457 | 458 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1066 459 | #, python-format 460 | msgid "“%(value)s” value must be either True, False, or None." 461 | msgstr "" 462 | 463 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1068 464 | msgid "Boolean (Either True or False)" 465 | msgstr "" 466 | 467 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1118 468 | #, python-format 469 | msgid "String (up to %(max_length)s)" 470 | msgstr "" 471 | 472 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1222 473 | msgid "Comma-separated integers" 474 | msgstr "" 475 | 476 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1323 477 | #, python-format 478 | msgid "" 479 | "“%(value)s” value has an invalid date format. It must be in YYYY-MM-DD " 480 | "format." 481 | msgstr "" 482 | 483 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1327 484 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1462 485 | #, python-format 486 | msgid "" 487 | "“%(value)s” value has the correct format (YYYY-MM-DD) but it is an invalid " 488 | "date." 489 | msgstr "" 490 | 491 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1331 492 | #: venv/lib/python3.10/site-packages/django_jalali/db/models.py:61 493 | msgid "Date (without time)" 494 | msgstr "" 495 | 496 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1458 497 | #, python-format 498 | msgid "" 499 | "“%(value)s” value has an invalid format. It must be in YYYY-MM-DD " 500 | "HH:MM[:ss[.uuuuuu]][TZ] format." 501 | msgstr "" 502 | 503 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1466 504 | #, python-format 505 | msgid "" 506 | "“%(value)s” value has the correct format (YYYY-MM-DD " 507 | "HH:MM[:ss[.uuuuuu]][TZ]) but it is an invalid date/time." 508 | msgstr "" 509 | 510 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1471 511 | #: venv/lib/python3.10/site-packages/django_jalali/db/models.py:223 512 | msgid "Date (with time)" 513 | msgstr "" 514 | 515 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1595 516 | #, python-format 517 | msgid "“%(value)s” value must be a decimal number." 518 | msgstr "" 519 | 520 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1597 521 | msgid "Decimal number" 522 | msgstr "" 523 | 524 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1754 525 | #, python-format 526 | msgid "" 527 | "“%(value)s” value has an invalid format. It must be in [DD] " 528 | "[[HH:]MM:]ss[.uuuuuu] format." 529 | msgstr "" 530 | 531 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1758 532 | msgid "Duration" 533 | msgstr "" 534 | 535 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1810 536 | msgid "Email address" 537 | msgstr "" 538 | 539 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1835 540 | msgid "File path" 541 | msgstr "" 542 | 543 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1913 544 | #, python-format 545 | msgid "“%(value)s” value must be a float." 546 | msgstr "" 547 | 548 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1915 549 | msgid "Floating point number" 550 | msgstr "" 551 | 552 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1955 553 | #, python-format 554 | msgid "“%(value)s” value must be an integer." 555 | msgstr "" 556 | 557 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1957 558 | msgid "Integer" 559 | msgstr "" 560 | 561 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2049 562 | msgid "Big (8 byte) integer" 563 | msgstr "" 564 | 565 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2066 566 | msgid "Small integer" 567 | msgstr "" 568 | 569 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2074 570 | msgid "IPv4 address" 571 | msgstr "" 572 | 573 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2105 574 | msgid "IP address" 575 | msgstr "" 576 | 577 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2198 578 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2199 579 | #, python-format 580 | msgid "“%(value)s” value must be either None, True or False." 581 | msgstr "" 582 | 583 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2201 584 | msgid "Boolean (Either True, False or None)" 585 | msgstr "" 586 | 587 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2252 588 | msgid "Positive big integer" 589 | msgstr "" 590 | 591 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2267 592 | msgid "Positive integer" 593 | msgstr "" 594 | 595 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2282 596 | msgid "Positive small integer" 597 | msgstr "" 598 | 599 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2298 600 | #, python-format 601 | msgid "Slug (up to %(max_length)s)" 602 | msgstr "" 603 | 604 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2334 605 | msgid "Text" 606 | msgstr "" 607 | 608 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2409 609 | #, python-format 610 | msgid "" 611 | "“%(value)s” value has an invalid format. It must be in HH:MM[:ss[.uuuuuu]] " 612 | "format." 613 | msgstr "" 614 | 615 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2413 616 | #, python-format 617 | msgid "" 618 | "“%(value)s” value has the correct format (HH:MM[:ss[.uuuuuu]]) but it is an " 619 | "invalid time." 620 | msgstr "" 621 | 622 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2417 623 | msgid "Time" 624 | msgstr "" 625 | 626 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2525 627 | msgid "URL" 628 | msgstr "" 629 | 630 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2549 631 | msgid "Raw binary data" 632 | msgstr "" 633 | 634 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2614 635 | #, python-format 636 | msgid "“%(value)s” is not a valid UUID." 637 | msgstr "" 638 | 639 | #: venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:2616 640 | msgid "Universally unique identifier" 641 | msgstr "" 642 | 643 | #: venv/lib/python3.10/site-packages/django/db/models/fields/files.py:232 644 | msgid "File" 645 | msgstr "" 646 | 647 | #: venv/lib/python3.10/site-packages/django/db/models/fields/files.py:392 648 | msgid "Image" 649 | msgstr "" 650 | 651 | #: venv/lib/python3.10/site-packages/django/db/models/fields/json.py:18 652 | msgid "A JSON object" 653 | msgstr "" 654 | 655 | #: venv/lib/python3.10/site-packages/django/db/models/fields/json.py:20 656 | msgid "Value must be valid JSON." 657 | msgstr "" 658 | 659 | #: venv/lib/python3.10/site-packages/django/db/models/fields/related.py:920 660 | #, python-format 661 | msgid "%(model)s instance with %(field)s %(value)r does not exist." 662 | msgstr "" 663 | 664 | #: venv/lib/python3.10/site-packages/django/db/models/fields/related.py:922 665 | msgid "Foreign Key (type determined by related field)" 666 | msgstr "" 667 | 668 | #: venv/lib/python3.10/site-packages/django/db/models/fields/related.py:1229 669 | msgid "One-to-one relationship" 670 | msgstr "" 671 | 672 | #: venv/lib/python3.10/site-packages/django/db/models/fields/related.py:1286 673 | #, python-format 674 | msgid "%(from)s-%(to)s relationship" 675 | msgstr "" 676 | 677 | #: venv/lib/python3.10/site-packages/django/db/models/fields/related.py:1288 678 | #, python-format 679 | msgid "%(from)s-%(to)s relationships" 680 | msgstr "" 681 | 682 | #: venv/lib/python3.10/site-packages/django/db/models/fields/related.py:1336 683 | msgid "Many-to-many relationship" 684 | msgstr "" 685 | 686 | #. Translators: If found as last label character, these punctuation 687 | #. characters will prevent the default label_suffix to be appended to the 688 | #. label 689 | #: venv/lib/python3.10/site-packages/django/forms/boundfield.py:176 690 | msgid ":?.!" 691 | msgstr "" 692 | 693 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:91 694 | msgid "This field is required." 695 | msgstr "" 696 | 697 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:298 698 | msgid "Enter a whole number." 699 | msgstr "" 700 | 701 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:467 702 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:1240 703 | #: venv/lib/python3.10/site-packages/django_jalali/forms/__init__.py:15 704 | msgid "Enter a valid date." 705 | msgstr "" 706 | 707 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:490 708 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:1241 709 | msgid "Enter a valid time." 710 | msgstr "" 711 | 712 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:517 713 | #: venv/lib/python3.10/site-packages/django_jalali/forms/__init__.py:54 714 | msgid "Enter a valid date/time." 715 | msgstr "" 716 | 717 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:551 718 | msgid "Enter a valid duration." 719 | msgstr "" 720 | 721 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:552 722 | #, python-brace-format 723 | msgid "The number of days must be between {min_days} and {max_days}." 724 | msgstr "" 725 | 726 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:618 727 | msgid "No file was submitted. Check the encoding type on the form." 728 | msgstr "" 729 | 730 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:619 731 | msgid "No file was submitted." 732 | msgstr "" 733 | 734 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:620 735 | msgid "The submitted file is empty." 736 | msgstr "" 737 | 738 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:622 739 | #, python-format 740 | msgid "" 741 | "Ensure this filename has at most %(max)d character (it has %(length)d)." 742 | msgid_plural "" 743 | "Ensure this filename has at most %(max)d characters (it has %(length)d)." 744 | msgstr[0] "" 745 | msgstr[1] "" 746 | 747 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:627 748 | msgid "Please either submit a file or check the clear checkbox, not both." 749 | msgstr "" 750 | 751 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:693 752 | msgid "" 753 | "Upload a valid image. The file you uploaded was either not an image or a " 754 | "corrupted image." 755 | msgstr "" 756 | 757 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:856 758 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:948 759 | #: venv/lib/python3.10/site-packages/django/forms/models.py:1572 760 | #, python-format 761 | msgid "Select a valid choice. %(value)s is not one of the available choices." 762 | msgstr "" 763 | 764 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:950 765 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:1069 766 | #: venv/lib/python3.10/site-packages/django/forms/models.py:1570 767 | msgid "Enter a list of values." 768 | msgstr "" 769 | 770 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:1070 771 | msgid "Enter a complete value." 772 | msgstr "" 773 | 774 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:1309 775 | msgid "Enter a valid UUID." 776 | msgstr "" 777 | 778 | #: venv/lib/python3.10/site-packages/django/forms/fields.py:1339 779 | msgid "Enter a valid JSON." 780 | msgstr "" 781 | 782 | #. Translators: This is the default suffix added to form field labels 783 | #: venv/lib/python3.10/site-packages/django/forms/forms.py:98 784 | msgid ":" 785 | msgstr "" 786 | 787 | #: venv/lib/python3.10/site-packages/django/forms/forms.py:248 788 | #: venv/lib/python3.10/site-packages/django/forms/forms.py:332 789 | #, python-format 790 | msgid "(Hidden field %(name)s) %(error)s" 791 | msgstr "" 792 | 793 | #: venv/lib/python3.10/site-packages/django/forms/formsets.py:63 794 | #, python-format 795 | msgid "" 796 | "ManagementForm data is missing or has been tampered with. Missing fields: " 797 | "%(field_names)s. You may need to file a bug report if the issue persists." 798 | msgstr "" 799 | 800 | #: venv/lib/python3.10/site-packages/django/forms/formsets.py:67 801 | #, python-format 802 | msgid "Please submit at most %(num)d form." 803 | msgid_plural "Please submit at most %(num)d forms." 804 | msgstr[0] "" 805 | msgstr[1] "" 806 | 807 | #: venv/lib/python3.10/site-packages/django/forms/formsets.py:72 808 | #, python-format 809 | msgid "Please submit at least %(num)d form." 810 | msgid_plural "Please submit at least %(num)d forms." 811 | msgstr[0] "" 812 | msgstr[1] "" 813 | 814 | #: venv/lib/python3.10/site-packages/django/forms/formsets.py:483 815 | #: venv/lib/python3.10/site-packages/django/forms/formsets.py:490 816 | msgid "Order" 817 | msgstr "" 818 | 819 | #: venv/lib/python3.10/site-packages/django/forms/formsets.py:496 820 | msgid "Delete" 821 | msgstr "" 822 | 823 | #: venv/lib/python3.10/site-packages/django/forms/models.py:892 824 | #, python-format 825 | msgid "Please correct the duplicate data for %(field)s." 826 | msgstr "" 827 | 828 | #: venv/lib/python3.10/site-packages/django/forms/models.py:897 829 | #, python-format 830 | msgid "Please correct the duplicate data for %(field)s, which must be unique." 831 | msgstr "" 832 | 833 | #: venv/lib/python3.10/site-packages/django/forms/models.py:904 834 | #, python-format 835 | msgid "" 836 | "Please correct the duplicate data for %(field_name)s which must be unique " 837 | "for the %(lookup)s in %(date_field)s." 838 | msgstr "" 839 | 840 | #: venv/lib/python3.10/site-packages/django/forms/models.py:913 841 | msgid "Please correct the duplicate values below." 842 | msgstr "" 843 | 844 | #: venv/lib/python3.10/site-packages/django/forms/models.py:1344 845 | msgid "The inline value did not match the parent instance." 846 | msgstr "" 847 | 848 | #: venv/lib/python3.10/site-packages/django/forms/models.py:1435 849 | msgid "" 850 | "Select a valid choice. That choice is not one of the available choices." 851 | msgstr "" 852 | 853 | #: venv/lib/python3.10/site-packages/django/forms/models.py:1574 854 | #, python-format 855 | msgid "“%(pk)s” is not a valid value." 856 | msgstr "" 857 | 858 | #: venv/lib/python3.10/site-packages/django/forms/utils.py:226 859 | #, python-format 860 | msgid "" 861 | "%(datetime)s couldn’t be interpreted in time zone %(current_timezone)s; it " 862 | "may be ambiguous or it may not exist." 863 | msgstr "" 864 | 865 | #: venv/lib/python3.10/site-packages/django/forms/widgets.py:439 866 | msgid "Clear" 867 | msgstr "" 868 | 869 | #: venv/lib/python3.10/site-packages/django/forms/widgets.py:440 870 | msgid "Currently" 871 | msgstr "" 872 | 873 | #: venv/lib/python3.10/site-packages/django/forms/widgets.py:441 874 | msgid "Change" 875 | msgstr "" 876 | 877 | #: venv/lib/python3.10/site-packages/django/forms/widgets.py:770 878 | msgid "Unknown" 879 | msgstr "" 880 | 881 | #: venv/lib/python3.10/site-packages/django/forms/widgets.py:771 882 | msgid "Yes" 883 | msgstr "" 884 | 885 | #: venv/lib/python3.10/site-packages/django/forms/widgets.py:772 886 | msgid "No" 887 | msgstr "" 888 | 889 | #. Translators: Please do not add spaces around commas. 890 | #: venv/lib/python3.10/site-packages/django/template/defaultfilters.py:853 891 | msgid "yes,no,maybe" 892 | msgstr "" 893 | 894 | #: venv/lib/python3.10/site-packages/django/template/defaultfilters.py:883 895 | #: venv/lib/python3.10/site-packages/django/template/defaultfilters.py:900 896 | #, python-format 897 | msgid "%(size)d byte" 898 | msgid_plural "%(size)d bytes" 899 | msgstr[0] "" 900 | msgstr[1] "" 901 | 902 | #: venv/lib/python3.10/site-packages/django/template/defaultfilters.py:902 903 | #, python-format 904 | msgid "%s KB" 905 | msgstr "" 906 | 907 | #: venv/lib/python3.10/site-packages/django/template/defaultfilters.py:904 908 | #, python-format 909 | msgid "%s MB" 910 | msgstr "" 911 | 912 | #: venv/lib/python3.10/site-packages/django/template/defaultfilters.py:906 913 | #, python-format 914 | msgid "%s GB" 915 | msgstr "" 916 | 917 | #: venv/lib/python3.10/site-packages/django/template/defaultfilters.py:908 918 | #, python-format 919 | msgid "%s TB" 920 | msgstr "" 921 | 922 | #: venv/lib/python3.10/site-packages/django/template/defaultfilters.py:910 923 | #, python-format 924 | msgid "%s PB" 925 | msgstr "" 926 | 927 | #: venv/lib/python3.10/site-packages/django/utils/dateformat.py:77 928 | msgid "p.m." 929 | msgstr "" 930 | 931 | #: venv/lib/python3.10/site-packages/django/utils/dateformat.py:78 932 | msgid "a.m." 933 | msgstr "" 934 | 935 | #: venv/lib/python3.10/site-packages/django/utils/dateformat.py:83 936 | msgid "PM" 937 | msgstr "" 938 | 939 | #: venv/lib/python3.10/site-packages/django/utils/dateformat.py:84 940 | msgid "AM" 941 | msgstr "" 942 | 943 | #: venv/lib/python3.10/site-packages/django/utils/dateformat.py:155 944 | msgid "midnight" 945 | msgstr "" 946 | 947 | #: venv/lib/python3.10/site-packages/django/utils/dateformat.py:157 948 | msgid "noon" 949 | msgstr "" 950 | 951 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:7 952 | msgid "Monday" 953 | msgstr "" 954 | 955 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:8 956 | msgid "Tuesday" 957 | msgstr "" 958 | 959 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:9 960 | msgid "Wednesday" 961 | msgstr "" 962 | 963 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:10 964 | msgid "Thursday" 965 | msgstr "" 966 | 967 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:11 968 | msgid "Friday" 969 | msgstr "" 970 | 971 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:12 972 | msgid "Saturday" 973 | msgstr "" 974 | 975 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:13 976 | msgid "Sunday" 977 | msgstr "" 978 | 979 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:16 980 | msgid "Mon" 981 | msgstr "" 982 | 983 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:17 984 | msgid "Tue" 985 | msgstr "" 986 | 987 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:18 988 | msgid "Wed" 989 | msgstr "" 990 | 991 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:19 992 | msgid "Thu" 993 | msgstr "" 994 | 995 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:20 996 | msgid "Fri" 997 | msgstr "" 998 | 999 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:21 1000 | msgid "Sat" 1001 | msgstr "" 1002 | 1003 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:22 1004 | msgid "Sun" 1005 | msgstr "" 1006 | 1007 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:25 1008 | msgid "January" 1009 | msgstr "" 1010 | 1011 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:26 1012 | msgid "February" 1013 | msgstr "" 1014 | 1015 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:27 1016 | msgid "March" 1017 | msgstr "" 1018 | 1019 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:28 1020 | msgid "April" 1021 | msgstr "" 1022 | 1023 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:29 1024 | msgid "May" 1025 | msgstr "" 1026 | 1027 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:30 1028 | msgid "June" 1029 | msgstr "" 1030 | 1031 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:31 1032 | msgid "July" 1033 | msgstr "" 1034 | 1035 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:32 1036 | msgid "August" 1037 | msgstr "" 1038 | 1039 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:33 1040 | msgid "September" 1041 | msgstr "" 1042 | 1043 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:34 1044 | msgid "October" 1045 | msgstr "" 1046 | 1047 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:35 1048 | msgid "November" 1049 | msgstr "" 1050 | 1051 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:36 1052 | msgid "December" 1053 | msgstr "" 1054 | 1055 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:39 1056 | msgid "jan" 1057 | msgstr "" 1058 | 1059 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:40 1060 | msgid "feb" 1061 | msgstr "" 1062 | 1063 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:41 1064 | msgid "mar" 1065 | msgstr "" 1066 | 1067 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:42 1068 | msgid "apr" 1069 | msgstr "" 1070 | 1071 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:43 1072 | msgid "may" 1073 | msgstr "" 1074 | 1075 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:44 1076 | msgid "jun" 1077 | msgstr "" 1078 | 1079 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:45 1080 | msgid "jul" 1081 | msgstr "" 1082 | 1083 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:46 1084 | msgid "aug" 1085 | msgstr "" 1086 | 1087 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:47 1088 | msgid "sep" 1089 | msgstr "" 1090 | 1091 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:48 1092 | msgid "oct" 1093 | msgstr "" 1094 | 1095 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:49 1096 | msgid "nov" 1097 | msgstr "" 1098 | 1099 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:50 1100 | msgid "dec" 1101 | msgstr "" 1102 | 1103 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:53 1104 | msgctxt "abbrev. month" 1105 | msgid "Jan." 1106 | msgstr "" 1107 | 1108 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:54 1109 | msgctxt "abbrev. month" 1110 | msgid "Feb." 1111 | msgstr "" 1112 | 1113 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:55 1114 | msgctxt "abbrev. month" 1115 | msgid "March" 1116 | msgstr "" 1117 | 1118 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:56 1119 | msgctxt "abbrev. month" 1120 | msgid "April" 1121 | msgstr "" 1122 | 1123 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:57 1124 | msgctxt "abbrev. month" 1125 | msgid "May" 1126 | msgstr "" 1127 | 1128 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:58 1129 | msgctxt "abbrev. month" 1130 | msgid "June" 1131 | msgstr "" 1132 | 1133 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:59 1134 | msgctxt "abbrev. month" 1135 | msgid "July" 1136 | msgstr "" 1137 | 1138 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:60 1139 | msgctxt "abbrev. month" 1140 | msgid "Aug." 1141 | msgstr "" 1142 | 1143 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:61 1144 | msgctxt "abbrev. month" 1145 | msgid "Sept." 1146 | msgstr "" 1147 | 1148 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:62 1149 | msgctxt "abbrev. month" 1150 | msgid "Oct." 1151 | msgstr "" 1152 | 1153 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:63 1154 | msgctxt "abbrev. month" 1155 | msgid "Nov." 1156 | msgstr "" 1157 | 1158 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:64 1159 | msgctxt "abbrev. month" 1160 | msgid "Dec." 1161 | msgstr "" 1162 | 1163 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:67 1164 | msgctxt "alt. month" 1165 | msgid "January" 1166 | msgstr "" 1167 | 1168 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:68 1169 | msgctxt "alt. month" 1170 | msgid "February" 1171 | msgstr "" 1172 | 1173 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:69 1174 | msgctxt "alt. month" 1175 | msgid "March" 1176 | msgstr "" 1177 | 1178 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:70 1179 | msgctxt "alt. month" 1180 | msgid "April" 1181 | msgstr "" 1182 | 1183 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:71 1184 | msgctxt "alt. month" 1185 | msgid "May" 1186 | msgstr "" 1187 | 1188 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:72 1189 | msgctxt "alt. month" 1190 | msgid "June" 1191 | msgstr "" 1192 | 1193 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:73 1194 | msgctxt "alt. month" 1195 | msgid "July" 1196 | msgstr "" 1197 | 1198 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:74 1199 | msgctxt "alt. month" 1200 | msgid "August" 1201 | msgstr "" 1202 | 1203 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:75 1204 | msgctxt "alt. month" 1205 | msgid "September" 1206 | msgstr "" 1207 | 1208 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:76 1209 | msgctxt "alt. month" 1210 | msgid "October" 1211 | msgstr "" 1212 | 1213 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:77 1214 | msgctxt "alt. month" 1215 | msgid "November" 1216 | msgstr "" 1217 | 1218 | #: venv/lib/python3.10/site-packages/django/utils/dates.py:78 1219 | msgctxt "alt. month" 1220 | msgid "December" 1221 | msgstr "" 1222 | 1223 | #: venv/lib/python3.10/site-packages/django/utils/ipv6.py:8 1224 | msgid "This is not a valid IPv6 address." 1225 | msgstr "" 1226 | 1227 | #: venv/lib/python3.10/site-packages/django/utils/text.py:76 1228 | #, python-format 1229 | msgctxt "String to return when truncating text" 1230 | msgid "%(truncated_text)s…" 1231 | msgstr "" 1232 | 1233 | #: venv/lib/python3.10/site-packages/django/utils/text.py:252 1234 | msgid "or" 1235 | msgstr "" 1236 | 1237 | #. Translators: This string is used as a separator between list elements 1238 | #: venv/lib/python3.10/site-packages/django/utils/text.py:271 1239 | #: venv/lib/python3.10/site-packages/django/utils/timesince.py:94 1240 | msgid ", " 1241 | msgstr "" 1242 | 1243 | #: venv/lib/python3.10/site-packages/django/utils/timesince.py:9 1244 | #, python-format 1245 | msgid "%(num)d year" 1246 | msgid_plural "%(num)d years" 1247 | msgstr[0] "" 1248 | msgstr[1] "" 1249 | 1250 | #: venv/lib/python3.10/site-packages/django/utils/timesince.py:10 1251 | #, python-format 1252 | msgid "%(num)d month" 1253 | msgid_plural "%(num)d months" 1254 | msgstr[0] "" 1255 | msgstr[1] "" 1256 | 1257 | #: venv/lib/python3.10/site-packages/django/utils/timesince.py:11 1258 | #, python-format 1259 | msgid "%(num)d week" 1260 | msgid_plural "%(num)d weeks" 1261 | msgstr[0] "" 1262 | msgstr[1] "" 1263 | 1264 | #: venv/lib/python3.10/site-packages/django/utils/timesince.py:12 1265 | #, python-format 1266 | msgid "%(num)d day" 1267 | msgid_plural "%(num)d days" 1268 | msgstr[0] "" 1269 | msgstr[1] "" 1270 | 1271 | #: venv/lib/python3.10/site-packages/django/utils/timesince.py:13 1272 | #, python-format 1273 | msgid "%(num)d hour" 1274 | msgid_plural "%(num)d hours" 1275 | msgstr[0] "" 1276 | msgstr[1] "" 1277 | 1278 | #: venv/lib/python3.10/site-packages/django/utils/timesince.py:14 1279 | #, python-format 1280 | msgid "%(num)d minute" 1281 | msgid_plural "%(num)d minutes" 1282 | msgstr[0] "" 1283 | msgstr[1] "" 1284 | 1285 | #: venv/lib/python3.10/site-packages/django/views/csrf.py:111 1286 | msgid "Forbidden" 1287 | msgstr "" 1288 | 1289 | #: venv/lib/python3.10/site-packages/django/views/csrf.py:112 1290 | msgid "CSRF verification failed. Request aborted." 1291 | msgstr "" 1292 | 1293 | #: venv/lib/python3.10/site-packages/django/views/csrf.py:116 1294 | msgid "" 1295 | "You are seeing this message because this HTTPS site requires a “Referer " 1296 | "header” to be sent by your web browser, but none was sent. This header is " 1297 | "required for security reasons, to ensure that your browser is not being " 1298 | "hijacked by third parties." 1299 | msgstr "" 1300 | 1301 | #: venv/lib/python3.10/site-packages/django/views/csrf.py:122 1302 | msgid "" 1303 | "If you have configured your browser to disable “Referer” headers, please re-" 1304 | "enable them, at least for this site, or for HTTPS connections, or for “same-" 1305 | "origin” requests." 1306 | msgstr "" 1307 | 1308 | #: venv/lib/python3.10/site-packages/django/views/csrf.py:127 1309 | msgid "" 1310 | "If you are using the tag or" 1311 | " including the “Referrer-Policy: no-referrer” header, please remove them. " 1312 | "The CSRF protection requires the “Referer” header to do strict referer " 1313 | "checking. If you’re concerned about privacy, use alternatives like for links to third-party sites." 1315 | msgstr "" 1316 | 1317 | #: venv/lib/python3.10/site-packages/django/views/csrf.py:136 1318 | msgid "" 1319 | "You are seeing this message because this site requires a CSRF cookie when " 1320 | "submitting forms. This cookie is required for security reasons, to ensure " 1321 | "that your browser is not being hijacked by third parties." 1322 | msgstr "" 1323 | 1324 | #: venv/lib/python3.10/site-packages/django/views/csrf.py:142 1325 | msgid "" 1326 | "If you have configured your browser to disable cookies, please re-enable " 1327 | "them, at least for this site, or for “same-origin” requests." 1328 | msgstr "" 1329 | 1330 | #: venv/lib/python3.10/site-packages/django/views/csrf.py:148 1331 | msgid "More information is available with DEBUG=True." 1332 | msgstr "" 1333 | 1334 | #: venv/lib/python3.10/site-packages/django/views/generic/dates.py:44 1335 | msgid "No year specified" 1336 | msgstr "" 1337 | 1338 | #: venv/lib/python3.10/site-packages/django/views/generic/dates.py:64 1339 | #: venv/lib/python3.10/site-packages/django/views/generic/dates.py:115 1340 | #: venv/lib/python3.10/site-packages/django/views/generic/dates.py:214 1341 | msgid "Date out of range" 1342 | msgstr "" 1343 | 1344 | #: venv/lib/python3.10/site-packages/django/views/generic/dates.py:94 1345 | msgid "No month specified" 1346 | msgstr "" 1347 | 1348 | #: venv/lib/python3.10/site-packages/django/views/generic/dates.py:147 1349 | msgid "No day specified" 1350 | msgstr "" 1351 | 1352 | #: venv/lib/python3.10/site-packages/django/views/generic/dates.py:194 1353 | msgid "No week specified" 1354 | msgstr "" 1355 | 1356 | #: venv/lib/python3.10/site-packages/django/views/generic/dates.py:349 1357 | #: venv/lib/python3.10/site-packages/django/views/generic/dates.py:380 1358 | #, python-format 1359 | msgid "No %(verbose_name_plural)s available" 1360 | msgstr "" 1361 | 1362 | #: venv/lib/python3.10/site-packages/django/views/generic/dates.py:652 1363 | #, python-format 1364 | msgid "" 1365 | "Future %(verbose_name_plural)s not available because " 1366 | "%(class_name)s.allow_future is False." 1367 | msgstr "" 1368 | 1369 | #: venv/lib/python3.10/site-packages/django/views/generic/dates.py:692 1370 | #, python-format 1371 | msgid "Invalid date string “%(datestr)s” given format “%(format)s”" 1372 | msgstr "" 1373 | 1374 | #: venv/lib/python3.10/site-packages/django/views/generic/detail.py:56 1375 | #, python-format 1376 | msgid "No %(verbose_name)s found matching the query" 1377 | msgstr "" 1378 | 1379 | #: venv/lib/python3.10/site-packages/django/views/generic/list.py:70 1380 | msgid "Page is not “last”, nor can it be converted to an int." 1381 | msgstr "" 1382 | 1383 | #: venv/lib/python3.10/site-packages/django/views/generic/list.py:77 1384 | #, python-format 1385 | msgid "Invalid page (%(page_number)s): %(message)s" 1386 | msgstr "" 1387 | 1388 | #: venv/lib/python3.10/site-packages/django/views/generic/list.py:169 1389 | #, python-format 1390 | msgid "Empty list and “%(class_name)s.allow_empty” is False." 1391 | msgstr "" 1392 | 1393 | #: venv/lib/python3.10/site-packages/django/views/static.py:38 1394 | msgid "Directory indexes are not allowed here." 1395 | msgstr "" 1396 | 1397 | #: venv/lib/python3.10/site-packages/django/views/static.py:40 1398 | #, python-format 1399 | msgid "“%(path)s” does not exist" 1400 | msgstr "" 1401 | 1402 | #: venv/lib/python3.10/site-packages/django/views/static.py:79 1403 | #, python-format 1404 | msgid "Index of %(directory)s" 1405 | msgstr "" 1406 | 1407 | #: venv/lib/python3.10/site-packages/django/views/templates/default_urlconf.html:7 1408 | #: venv/lib/python3.10/site-packages/django/views/templates/default_urlconf.html:221 1409 | msgid "The install worked successfully! Congratulations!" 1410 | msgstr "" 1411 | 1412 | #: venv/lib/python3.10/site-packages/django/views/templates/default_urlconf.html:207 1413 | #, python-format 1414 | msgid "" 1415 | "View release notes for Django %(version)s" 1417 | msgstr "" 1418 | 1419 | #: venv/lib/python3.10/site-packages/django/views/templates/default_urlconf.html:222 1420 | #, python-format 1421 | msgid "" 1422 | "You are seeing this page because DEBUG=True is in your settings file " 1425 | "and you have not configured any URLs." 1426 | msgstr "" 1427 | 1428 | #: venv/lib/python3.10/site-packages/django/views/templates/default_urlconf.html:230 1429 | msgid "Django Documentation" 1430 | msgstr "" 1431 | 1432 | #: venv/lib/python3.10/site-packages/django/views/templates/default_urlconf.html:231 1433 | msgid "Topics, references, & how-to’s" 1434 | msgstr "" 1435 | 1436 | #: venv/lib/python3.10/site-packages/django/views/templates/default_urlconf.html:239 1437 | msgid "Tutorial: A Polling App" 1438 | msgstr "" 1439 | 1440 | #: venv/lib/python3.10/site-packages/django/views/templates/default_urlconf.html:240 1441 | msgid "Get started with Django" 1442 | msgstr "" 1443 | 1444 | #: venv/lib/python3.10/site-packages/django/views/templates/default_urlconf.html:248 1445 | msgid "Django Community" 1446 | msgstr "" 1447 | 1448 | #: venv/lib/python3.10/site-packages/django/views/templates/default_urlconf.html:249 1449 | msgid "Connect, get help, or contribute" 1450 | msgstr "" 1451 | 1452 | #: venv/lib/python3.10/site-packages/django_jalali/admin/filters.py:38 1453 | #: venv/lib/python3.10/site-packages/django_jalali/admin/filterspecs.py:38 1454 | msgid "Any date" 1455 | msgstr "" 1456 | 1457 | #: venv/lib/python3.10/site-packages/django_jalali/admin/filters.py:39 1458 | #: venv/lib/python3.10/site-packages/django_jalali/admin/filterspecs.py:39 1459 | msgid "Today" 1460 | msgstr "" 1461 | 1462 | #: venv/lib/python3.10/site-packages/django_jalali/admin/filters.py:43 1463 | #: venv/lib/python3.10/site-packages/django_jalali/admin/filterspecs.py:40 1464 | msgid "Past 7 days" 1465 | msgstr "" 1466 | 1467 | #: venv/lib/python3.10/site-packages/django_jalali/admin/filters.py:47 1468 | #: venv/lib/python3.10/site-packages/django_jalali/admin/filterspecs.py:44 1469 | msgid "This month" 1470 | msgstr "" 1471 | 1472 | #: venv/lib/python3.10/site-packages/django_jalali/admin/filters.py:51 1473 | #: venv/lib/python3.10/site-packages/django_jalali/admin/filterspecs.py:48 1474 | msgid "This year" 1475 | msgstr "" 1476 | 1477 | #: venv/lib/python3.10/site-packages/django_jalali/admin/widgets.py:51 1478 | msgid "Date:" 1479 | msgstr "" 1480 | 1481 | #: venv/lib/python3.10/site-packages/django_jalali/admin/widgets.py:51 1482 | msgid "Time:" 1483 | msgstr "" 1484 | 1485 | #: venv/lib/python3.10/site-packages/django_jalali/db/models.py:64 1486 | msgid "Enter a valid date in YYYY-MM-DD format." 1487 | msgstr "" 1488 | 1489 | #: venv/lib/python3.10/site-packages/django_jalali/db/models.py:65 1490 | #, python-format 1491 | msgid "Invalid date: %s" 1492 | msgstr "" 1493 | 1494 | #: venv/lib/python3.10/site-packages/django_jalali/db/models.py:220 1495 | msgid "Enter a valid date/time in YYYY-MM-DD HH:MM[:ss[.uuuuuu]] format." 1496 | msgstr "" 1497 | 1498 | #: venv/lib/python3.10/site-packages/drf_spectacular/openapi.py:1272 1499 | #: venv/lib/python3.10/site-packages/drf_spectacular/openapi.py:1325 1500 | #: venv/lib/python3.10/site-packages/drf_spectacular/openapi.py:1329 1501 | #: venv/lib/python3.10/site-packages/drf_spectacular/openapi.py:1333 1502 | msgid "No response body" 1503 | msgstr "" 1504 | 1505 | #: venv/lib/python3.10/site-packages/drf_spectacular/openapi.py:1297 1506 | #: venv/lib/python3.10/site-packages/drf_spectacular/openapi.py:1349 1507 | msgid "Unspecified response body" 1508 | msgstr "" 1509 | 1510 | #: venv/lib/python3.10/site-packages/drf_spectacular/plumbing.py:420 1511 | #, python-format 1512 | msgid "Token-based authentication with required prefix \"%s\"" 1513 | msgstr "" 1514 | 1515 | #: venv/lib/python3.10/site-packages/drf_spectacular/views.py:43 1516 | msgid "" 1517 | "\n" 1518 | " OpenApi3 schema for this API. Format can be selected via content negotiation.\n" 1519 | "\n" 1520 | " - YAML: application/vnd.oai.openapi\n" 1521 | " - JSON: application/vnd.oai.openapi+json\n" 1522 | " " 1523 | msgstr "" 1524 | 1525 | #: venv/lib/python3.10/site-packages/modeltranslation/widgets.py:26 1526 | msgid "None" 1527 | msgstr "" 1528 | 1529 | #: venv/lib/python3.10/site-packages/parler_rest/fields.py:21 1530 | msgid "Input is not a valid dict" 1531 | msgstr "" 1532 | 1533 | #: venv/lib/python3.10/site-packages/parler_rest/fields.py:22 1534 | msgid "This field may not be empty." 1535 | msgstr "" 1536 | 1537 | #, fuzzy 1538 | #~ msgid "Sub Category" 1539 | #~ msgstr "دسته بندی" 1540 | 1541 | #~ msgid "admin/" 1542 | #~ msgstr "مدیریت" 1543 | -------------------------------------------------------------------------------- /manage.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | """Django's command-line utility for administrative tasks.""" 3 | import os 4 | import sys 5 | 6 | 7 | def main(): 8 | """Run administrative tasks.""" 9 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings') 10 | try: 11 | from django.core.management import execute_from_command_line 12 | except ImportError as exc: 13 | raise ImportError( 14 | "Couldn't import Django. Are you sure it's installed and " 15 | "available on your PYTHONPATH environment variable? Did you " 16 | "forget to activate a virtual environment?" 17 | ) from exc 18 | execute_from_command_line(sys.argv) 19 | 20 | 21 | if __name__ == '__main__': 22 | main() 23 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | asgiref==3.5.2 2 | attrs==22.1.0 3 | certifi==2022.9.24 4 | charset-normalizer==2.1.1 5 | Django==4.1.2 6 | django-ckeditor==6.5.1 7 | django-environ==0.9.0 8 | django-filter==22.1 9 | django-jalali==6.0.0 10 | django-jquery==3.1.0 11 | django-js-asset==2.0.0 12 | django-modeltranslation==0.18.5 13 | django-parler==2.3 14 | django-parler-rest==2.2 15 | django-rosetta==0.9.8 16 | django-widget-tweaks==1.4.12 17 | djangorestframework==3.14.0 18 | drf-spectacular==0.24.2 19 | drf-spectacular-sidecar==2022.10.1 20 | idna==3.4 21 | inflection==0.5.1 22 | jdatetime==4.1.0 23 | jsonschema==4.16.0 24 | Pillow==9.3.0 25 | polib==1.1.1 26 | pyrsistent==0.18.1 27 | pytz==2022.5 28 | PyYAML==6.0 29 | requests==2.28.1 30 | sqlparse==0.4.3 31 | uritemplate==4.1.1 32 | urllib3==1.26.12 33 | -------------------------------------------------------------------------------- /sample_env.txt: -------------------------------------------------------------------------------- 1 | SECRET_KEY = '' -------------------------------------------------------------------------------- /templates/base.html: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | 3 | {% get_current_language as CURRENT_LANGUAGE %} 4 | {% get_available_languages as AVAILABLE_LANGUAGES %} 5 | {% get_language_info_list for AVAILABLE_LANGUAGES as languages %} 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 21 | 22 | {% translate "This is the title" as the_title %} 23 | 24 | {{ the_title }}-{% block title %}{% endblock %} 25 | 26 | 27 | 28 | 61 | 62 | 63 | 64 |
65 |

{% translate 'TestDriven.io Courses' %}

67 | 68 | 69 | {% include 'inc/language.html' %} 70 | 71 | {% block main %} 72 | {% endblock %} 73 | 74 |
75 | 76 | -------------------------------------------------------------------------------- /templates/inc/language.html: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | {% load change_language_tag %} 3 | 4 | 5 | {% get_current_language as CURRENT_LANGUAGE %} 6 | {% get_available_languages as AVAILABLE_LANGUAGES %} 7 | {% get_language_info_list for AVAILABLE_LANGUAGES as languages %} 8 |
9 | 18 |
19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mizfa-Tech/Django-Blog-Multilingual/d8549653cc7de92d10c8fce784abc15d60a05d62/utils/__init__.py -------------------------------------------------------------------------------- /utils/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class UtilsConfig(AppConfig): 5 | default_auto_field = 'django.db.models.BigAutoField' 6 | name = 'utils' 7 | -------------------------------------------------------------------------------- /utils/general/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mizfa-Tech/Django-Blog-Multilingual/d8549653cc7de92d10c8fce784abc15d60a05d62/utils/general/__init__.py -------------------------------------------------------------------------------- /utils/general/api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mizfa-Tech/Django-Blog-Multilingual/d8549653cc7de92d10c8fce784abc15d60a05d62/utils/general/api/__init__.py -------------------------------------------------------------------------------- /utils/general/api/serializer/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mizfa-Tech/Django-Blog-Multilingual/d8549653cc7de92d10c8fce784abc15d60a05d62/utils/general/api/serializer/__init__.py -------------------------------------------------------------------------------- /utils/general/api/serializer/serializer_date.py: -------------------------------------------------------------------------------- 1 | from rest_framework import serializers 2 | from utils.general.models.model_date_abstract import DateBasic 3 | 4 | 5 | class DateSerializer(serializers.ModelSerializer): 6 | class Meta: 7 | model = DateBasic 8 | fields = '__all__' 9 | read_only_fields = ['created_at', 'updated_at'] 10 | -------------------------------------------------------------------------------- /utils/general/api/serializer/serializer_seo.py: -------------------------------------------------------------------------------- 1 | from rest_framework import serializers 2 | from utils.general.models.model_seo_abstract import Seo 3 | 4 | 5 | class SeoSerializer(serializers.ModelSerializer): 6 | class Meta: 7 | model = Seo 8 | fields = '__all__' 9 | -------------------------------------------------------------------------------- /utils/general/api/serializer/serializer_taxonomy.py: -------------------------------------------------------------------------------- 1 | from rest_framework import serializers 2 | from utils.general.models.model_taxonomy_abstraction import Taxonomy 3 | 4 | 5 | class TaxonomySerializer(serializers.ModelSerializer): 6 | class Meta: 7 | model = Taxonomy 8 | fields = '__all__' 9 | 10 | -------------------------------------------------------------------------------- /utils/general/models/__init__.py: -------------------------------------------------------------------------------- 1 | from .model_date_abstract import DateBasic 2 | from .model_seo_abstract import Seo 3 | from .model_status_abstract import Status 4 | from .model_taxonomy_abstraction import Taxonomy 5 | from .model_basic_post_abstract import BasicPost 6 | from .model_status_language import LanguageStatus -------------------------------------------------------------------------------- /utils/general/models/model_basic_post_abstract.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | 3 | from django.utils.translation import gettext_lazy as _ 4 | from ckeditor_uploader.fields import RichTextUploadingField 5 | from django.contrib.auth import get_user_model 6 | 7 | from utils.utile.unique_slug_generator import unique_slug_generator 8 | 9 | from datetime import datetime 10 | 11 | 12 | class BasicPost(models.Model): 13 | """ 14 | This Class is for Posts. 15 | It's very important to know that, in author we use classname_posts related name. 16 | 17 | For Example if want to find all of user posts (Class name = Blog) we should use this: 18 | 19 | get_user_model().objects.first().blog_posts.first() 20 | 21 | """ 22 | 23 | class Meta: 24 | abstract = True 25 | 26 | title = models.CharField(_('title'), max_length=350) 27 | content = RichTextUploadingField(_('content')) 28 | slug = models.SlugField(_('slug'), unique=True, blank=True) 29 | author = models.ForeignKey(get_user_model(), on_delete=models.CASCADE, related_name='%(class)s_posts', 30 | verbose_name=_('author')) 31 | thumbnail = models.ImageField(_('thumbnail'), 32 | upload_to=f'thumbnails/{str(datetime.now().year)}/{str(datetime.now().month)}', 33 | blank=True, null=True) 34 | thumbnail_alt = models.CharField(_('thumbnail alt'), max_length=350, blank=True) 35 | 36 | -------------------------------------------------------------------------------- /utils/general/models/model_date_abstract.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | from django.utils.translation import gettext_lazy as _ 3 | from django_jalali.db import models as jmodels 4 | 5 | 6 | class DateBasic(models.Model): 7 | class Meta: 8 | abstract = True 9 | 10 | created_at = models.DateTimeField(_('created at'), auto_now_add=True) 11 | updated_at = models.DateTimeField(_('updated at'), auto_now=True) 12 | 13 | created_at_jalali = jmodels.jDateTimeField(_('created at jalali'), auto_now_add=True) 14 | updated_at_jalali = jmodels.jDateTimeField(_('updated at jalali'), auto_now=True) 15 | -------------------------------------------------------------------------------- /utils/general/models/model_seo_abstract.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | from django.utils.translation import gettext_lazy as _ 3 | from ckeditor_uploader.fields import RichTextUploadingField 4 | 5 | 6 | class Seo(models.Model): 7 | class Meta: 8 | abstract = True 9 | 10 | meta_title = models.CharField(_('meta title'), max_length=320, blank=True, null=True) 11 | meta_description = RichTextUploadingField(_('meta description'), blank=True, null=True) 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /utils/general/models/model_status_abstract.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | from django.utils.translation import gettext_lazy as _ 3 | 4 | 5 | class Status(models.Model): 6 | class Meta: 7 | abstract = True 8 | 9 | class Choices(models.TextChoices): 10 | PUBLISH = 'PU', _('Publish') 11 | INRIVIEW = 'IN', _('Inriview') 12 | PENDING = 'PE', _('Pending') 13 | 14 | status = models.CharField(_('status'), 15 | max_length=2, 16 | choices=Choices.choices, 17 | default=Choices.PENDING, 18 | ) 19 | -------------------------------------------------------------------------------- /utils/general/models/model_status_language.py: -------------------------------------------------------------------------------- 1 | from django.utils.translation import gettext_lazy as _ 2 | from django.db import models 3 | 4 | 5 | class LanguageStatus(models.Model): 6 | class Meta: 7 | abstract = True 8 | 9 | is_active = models.BooleanField(_('is active'), default=False) 10 | -------------------------------------------------------------------------------- /utils/general/models/model_taxonomy_abstraction.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | from django.db.models.signals import pre_save 3 | from django.dispatch import receiver 4 | from django.utils.translation import gettext_lazy as _ 5 | from ckeditor_uploader.fields import RichTextUploadingField 6 | 7 | from utils.utile.unique_slug_generator import unique_slug_generator 8 | 9 | from datetime import datetime 10 | 11 | class Taxonomy(models.Model): 12 | class Meta: 13 | abstract = True 14 | 15 | title = models.CharField(_('title'), max_length=350) 16 | description = RichTextUploadingField(_('description'), blank=True, null=True) 17 | slug = models.SlugField(_('slug'), unique=True, blank=True) 18 | thumbnail = models.ImageField(_('thumbnail'), upload_to=f'taxonomy/thumbnails/{str(datetime.now().year)}/{str(datetime.now().month)}', blank=True, null=True) 19 | thumbnail_alt = models.CharField(_('thumbnail alt'), max_length=350, blank=True) 20 | 21 | 22 | @receiver(pre_save, sender=Taxonomy) 23 | def taxonomy_pre_save_receiver(sender, instance, *args, **kwargs): 24 | if not instance.slug: 25 | instance.slug = unique_slug_generator(instance) 26 | if not instance.thumbnail_alt: 27 | instance.thumbnail_alt = instance.title 28 | -------------------------------------------------------------------------------- /utils/migrations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mizfa-Tech/Django-Blog-Multilingual/d8549653cc7de92d10c8fce784abc15d60a05d62/utils/migrations/__init__.py -------------------------------------------------------------------------------- /utils/templatetags/__init__.py: -------------------------------------------------------------------------------- 1 | from .change_language_tag import change_lang 2 | -------------------------------------------------------------------------------- /utils/templatetags/change_language_tag.py: -------------------------------------------------------------------------------- 1 | from django import template 2 | from django.urls import translate_url 3 | 4 | register = template.Library() 5 | 6 | 7 | @register.simple_tag(takes_context=True) 8 | def change_lang(context, lang: str, *args, **kwargs): 9 | path = context['request'].path 10 | 11 | return translate_url(path, lang) -------------------------------------------------------------------------------- /utils/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /utils/utile/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mizfa-Tech/Django-Blog-Multilingual/d8549653cc7de92d10c8fce784abc15d60a05d62/utils/utile/__init__.py -------------------------------------------------------------------------------- /utils/utile/unique_slug_generator.py: -------------------------------------------------------------------------------- 1 | import string 2 | import random 3 | 4 | from django.utils.text import slugify 5 | 6 | 7 | def random_string_generator(size=10, chars=string.ascii_lowercase + string.digits): 8 | return ''.join(random.choice(chars) for _ in range(size)) 9 | 10 | 11 | def unique_slug_generator(instance, new_slug=None): 12 | if new_slug is not None: 13 | slug = new_slug 14 | else: 15 | slug = slugify(instance.title, allow_unicode=True) 16 | 17 | Klass = instance.__class__ 18 | qs_exists = Klass.objects.filter(slug=slug).exists() 19 | if qs_exists: 20 | new_slug = "{slug}-{randstr}".format( 21 | slug=slug, 22 | randstr=random_string_generator(size=4) 23 | ) 24 | return unique_slug_generator(instance, new_slug=new_slug) 25 | return slug -------------------------------------------------------------------------------- /utils/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render 2 | 3 | # Create your views here. 4 | --------------------------------------------------------------------------------